[英]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.