87,910
社区成员
发帖
与我相关
我的任务
分享
var objShell = new ActiveXObject("wscript.shell");
objShell.Run(strPath);//火狐路径及参数
objShell = null;
<SCRIPT language=javascript>
function Run(strPath) {
// exe.value=strPath;
try {
var objShell = new ActiveXObject("wscript.shell");
objShell.Run(strPath);
objShell = null;
}
catch (e){alert('找不到文件"'+strPath+'"(或它的组件之一)。请确定路径和文件名是否正确,而且所需的库文件均可用。')
}
}
</SCRIPT>