javascript如何调用本地exe程序

来源:互联网 发布:mmd极乐净土镜头数据 编辑:程序博客网 时间:2024/05/22 14:36

   javascript如何调用本地exe程序

     //调用本地程序

    function runCaptureScreen() {
        var executableFullPath = “D://hello.exe”;
        try {
            var shellActiveXObject = new ActiveXObject("WScript.Shell");
            if (!shellActiveXObject) {
                alert('WScript.Shell');
                return;
            }
            shellActiveXObject.Run(executableFullPath, 1, false);
            shellActiveXObject = null;
        }
        catch (errorObject) {

            
        }
    }
0 0
原创粉丝点击