javascript在chrome浏览器上运行.exe客户端
我将使用ASP.NET开发MVC,并且可以在IE浏览器客户端上运行exe文件。
这段代码
MyObject = new ActiveXObject("WScript.Shell");
MyObject.Run({application path});
但我无法在 chrome 浏览器上调用它。
你有示例 javascript 代码吗?
谢谢。
I will develop MVC with ASP.NET and I can run exe file on the IE browser client.
This code
MyObject = new ActiveXObject("WScript.Shell");
MyObject.Run({application path});
But I can't call it on the chrome brower.
Do you have sample javascript code?
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请注意,许多公司出于安全原因禁用了 activex。使用 javascript 代码启动程序是一个坏主意(即使浏览器允许!)。
该程序是否与某种文件类型相关?您可以为程序加载一个文件,让浏览器启动应用程序。就像下载 pdf 启动 acrobat...
Be aware that alot of companys disable activex because of security reasons. And starting a program with javascript code is a bad idea (even if the browser allows it!).
Is the program related to some kind of file type? You might load a file for the program that let the browser start the application. Like downloading pdfs starts acrobat...