如何从网络浏览器启动 .NET 程序?
您能否提供 JavaScript 函数的示例,用于从网络浏览器(例如 google chrome 4)启动安装在您计算机上的应用程序。特别是.Net应用程序是否有任何特殊的简化此过程的API,或者有一些供此类人员使用的库,请与我们分享链接。
那么如何创建并存储在启动程序中运行的小型本地服务器,该服务器将处理一些本地网址,例如 http:// /localhost/maAppServer/MyAppCalculator/Start 用于启动在其配置文件中写入其名称和安装时本地 URL 的应用程序?
那么如何从 Web 浏览器启动 C# .NET 应用\程序呢?
Could you provide example of JavaScript function for starting up application installed on your computer from a web browser (eg google chrome 4). It particular if .Net APPs have any special simplifying this process apis of out there are some libs for such staff, please share link with us.
so how to create and store in run on start up programs a small local server which would handel some local urls like http://localhost/maAppServer/MyAppCalculator/Start for starting apps that have written in its config file their names and local urls on install?
So how to start up your C# .NET app\program from web browser?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不相信这在 Chrome 中是可能的,在用户计算机上启动 EXE 可能会被视为安全违规。 Internet Explorer 中的某些 ActiveX 和 file:// 链接可能有效。另外,OneClick 部署可能会执行与您所执行的操作类似的操作(虽然我不这么认为,但并不完全一样,而且我相信它们需要一个可能不适用于 Crhome 的加载项)http://www.15seconds.com/issue/041229.htm
I don't believe its possible in Chrome, starting an EXE on a users computer could be considered a security violation. Some ActiveX, and file:// links in internet explorer may work. Also, OneClick deployment may do something similar to what you are after (not exactly though I don't think, and I believe they require an add-in which may not be available for Crhome) http://www.15seconds.com/issue/041229.htm
我不确定你在要求什么。您只需在 HTML 页面中链接到该应用程序即可在计算机上启动该应用程序。但是,如果您需要向其传递数据,则完全是另一回事,尽管它仍然很简单。
一个例子是 www.nexon.com 的 MMORPG、MapleStory。您登录网站,验证通过后网页开始游戏。另一个例子是文件共享网站上的磁力链接。
您需要创建一个协议处理程序,它可以使用任何语言(例如 C++/C#)并将其注册到客户端计算机上。就像这样 - http://msdn.microsoft.com/en -us/library/aa767914(VS.85).aspx
然后,只需使用您构建的协议来传递任何必要的数据。您可以添加一个可以单击的链接、一个按钮、来自服务器的 Response.Redirect(),无论您喜欢什么。
I'm not sure what you're asking for. You can start an application on your computer just by linking to it in the HTML page. However, if you need to pass data to it, then it's a different matter altogether, although it's still simple.
An example is what www.nexon.com does with it's MMORPG, MapleStory. You log on to the website, and the web page starts the game after the authentication. Another example would be the magnet links on file-sharing sites.
You need to create a protocol handler, it can be in any language like C++/C# and register it on the client's computer. Like so - http://msdn.microsoft.com/en-us/library/aa767914(VS.85).aspx
Then, just use the protocol you built to pass on whatever data necessary. You can add a link that can be clicked, a button, Response.Redirect() from the server, whatever you like.