通过互联网执行代码的最佳方式

发布于 2024-08-07 17:56:07 字数 326 浏览 4 评论 0原文

基本上,我需要通过网站在观众计算机上执行程序。然而,该程序必须能够与设备驱动程序对话,这使得它不太可能成为 activex 的候选者。该网站仅供客户使用(例如,它不是公共网站),因此更改安全设置并不是什么大问题。

另外,我们可以让他们在计算机上安装一个应用程序,然后当他们单击网站上的按钮时,此 ActiveX 控件只会执行他们已经安装的应用程序,以避免设备驱动程序问题。

有谁知道如何做这还好吗?我有一种感觉,activex 不会让你任意执行本地应用程序。此外,最好可以不使用证书和签名(尽管最终将通过 https 进行)

(它仅标记为 C#,因为这是在客户端和服务器上使用的编程语言)

basically, I am needing to execute a program on the viewers computer through a website. This program must be capable of talking to device drivers however, which makes it an unlikely candidate for activex. The website will only be used by clients(as in, it's not a public site) so having to change security settings isn't too big of a deal.

Also, we could possibly have them install an application on their computer, and then when they click a button on the website this activex control just executes the application they already installed to avoid device driver problems..

Does anyone have any ideas on how to do this well? I have a feeling activex won't just let you arbitrarily execute local applications. Also, it is preferred to be possible to do without certificates and signing(though it will eventually be over https)

(it's only tagged C# because that's the programming language to be used on both the client and server)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

耶耶耶 2024-08-14 17:56:07

如果您只需要告诉应用程序简单地启动或使用某些数据启动,您可以查看 注册协议处理程序并创建用户可以单击的链接,类似于 myapp://the/data/你/需要/发送。

If you only need to tell the application to simply launch or launch with certain data, you can look into registering a protocol handler and create links, that the user can click, similar to myapp://the/data/you/need/to/send.

能怎样 2024-08-14 17:56:07

听起来您将控制客户端和服务器端,那么为什么不使用 WCF 并设置客户端应用程序通过双工通信连接到服务器。在服务器端保留已连接到它的客户端列表,然后当您需要触发客户端代码时,它将迭代客户端列表并发送消息以执行代码。当客户端断开连接时,它将从服务器上注销。

有关双面打印服务的详细信息,请参阅此链接

It sounds like you will have control over the client and server sides, so why not use WCF and set up the client application to connect to the server via a duplexed communication. On the server side keep a list of the clients that have connected to it and then when you need to trigger the client side code it will iterate over the list of clients and send the message to execute the code. And when the client disconnects it will be unregistered from the server.

See this link for more information on the duplex services.

琉璃繁缕 2024-08-14 17:56:07

此外,我们还可以让他们在计算机上安装一个应用程序,然后当他们单击网站上的按钮时,此 ActiveX 控件只会执行他们已经安装的应用程序,以避免设备驱动程序问题。

。这几乎就是您必须做的事情。

Also, we could possibly have them install an application on their computer, and then when they click a button on the website this activex control just executes the application they already installed to avoid device driver problems..

Ding ding. That's pretty much what you'll have to do.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文