我试图使用以下代码打开程序:

<head>
<title></title>
<script language="javascript" type="text/javascript">
    function run() {
        var shell = new ActiveXObject("WScript.shell");
        if (shell) {
            shell.run('"C:\\Program Files (x86)\\BitTorrent\\BitTorrent.exe"', 1);
        }
        else
        { alert("BitTorrent is not installed on your system."); }
    }

但这是行不通的。
有什么帮助吗?

最佳答案

这是因为出于安全原因,浏览器阻止了ActiveX控件的创建。此外,仅IE中支持ActiveX。 IE具有允许在浏览器中运行ActiveX的选项,但我怀疑许多用户启用了此功能。

07-24 09:43
查看更多