怎么用javascript写一个调用exe程序的代码

 

< html >

< SCRIPT  language =JavaScript >
function run()
{
var shell=new ActiveXObject("WScript.shell")
shell.run(
'F:/DataImp.exe 1')

}

</ script >
< body >

< img  src ="images/bottomblue.gif"  width ="255"  height ="13"  onClick ="run()" >

</ body >
</ html >

 

   具体见:http://bbs.blueidea.com/thread-2078976-1-1.html

你可能感兴趣的:(JavaScript,html,function,shell,exe)