<script language="JavaScript">
function open_exe(shellp,str)
{
a=new ActiveXObject("wscript.shell");
a.run(shellp+" "+str);
}
</script>
<button οnclick="open_exe('notepad.exe','c://ltdz1.txt')">打开notepad</button>
<button οnclick="open_exe('winword.exe','c://long.doc')">打开word</button>
<button οnclick="open_exe('chrome','http://www.baidu')">chrome打开浏览器</button>
发布者:admin,转转请注明出处:http://www.yc00.com/web/1741133081a4312492.html
评论列表(0条)