[英]Internet Explorer 11 Not allowing calculation within @keyframe
[英]Is it possible to run an .exe file within Internet Explorer 11?
操作系统是Windows 8.1-我想知道是否可以安装基于ActiveX的包装程序以在IE11窗口中运行.exe文件。 如果可以通过网页上的链接启动它,那将是理想的选择。
是的,可以通过javascript实现。 这是一个可行的解决方案的示例:
就您而言,您只需要使这些代码行成为一个函数,然后创建一个超链接即可:
var executeShell = function(){
var oShell = new ActiveXObject("Shell.Application");
var commandtoRun = "C:\\Windows\\notepad.exe";
oShell.ShellExecute(commandtoRun,"","","open","1");
};
<a href="#execute" onclick="executeShell();return false;">Run an exe</a>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.