JS IE 打开本地exe程序

例:

 try{
           //新建一个ActiveXObject对象
           var exe = new ActiveXObject("wscript.shell");
           var exePath = decodeURIComponent('${exePathXF}');
           exe.run(exePath); 
       }catch(e)
       {
           alert('找不到文件:"'+exePath+'",请检查路径是否正确!  ');
       }

 

posted on 2018-09-19 16:54  LJD泊水  阅读(923)  评论(0编辑  收藏  举报