下面这段JS代码不能启动客户端的sfm.exe,总是提示“网页上有错误”,请问各位高手,错在哪儿? function runcmd()
{
var objShell = new ActiveXObject("wscript.shell");
objShell.Run('"C:\\sfm.exe"');
objShell.Quit();
objShell = null;
}
{
var objShell = new ActiveXObject("wscript.shell");
objShell.Run('"C:\\sfm.exe"');
objShell.Quit();
objShell = null;
}
要么将网页保存为xx.hta,让用户自行打开hta文件