本文主要介绍在网页上如何调用桌面exe程序。
网页代码如下:
代码如下:
Document function start(strPath){
var objShell = new ActiveXObject("wscript.shell");
objShell.Run(strPath);
objShell = null;
}
start("F:/adt-bundle-windows-x86-20130729/eclipse/eclipse.exe");
//注意路径中必须使用/ ,而不能使用
script>
希望对大家有帮助!
下载本文