首页 > 编程学习 > javascript如何调用本地exe程序

javascript如何调用本地exe程序

发布时间:2022/6/23 23:32:09

   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) {

            
        }
    }
Copyright © 2010-2022 ngui.cc 版权所有 |关于我们| 联系方式| 豫B2-20100000