JavaScript调用客户端的可执行文件(示例代码)
代码如下:[removed]<!–打开记事本程序–>function openNotepad(){ var wsh=new ActiveXObject(“wscript.shell”) wsh.run(“notepad.exe”)//如果在“运行”可以运行就可以在此直接写,否则要写上绝对路径}<!–打开word程序–>function openWord(){ var wsh=new ActiveXObject(“wscript.shell”); wsh.run(“calc.exe”);}<!–打开指定位置程序–>function openTxt(file){ var wsh=
下载地址
用户评论