<script language="JavaScript">
function open_exe(shellp,str)
{
a=new ActiveXObject("wscript.shell");
a.run(shellp+" "+str);
}
function cq()
{
b=new ActiveXObject("wscript.shell");
b.run("rundll32.exe")
}
</script>
<button οnclick="open_exe('notepad.exe','')">打开notepad</button>
<button οnclick="open_exe('winword.exe','')">打开word</button>
<button οnclick="open_exe('ACDSee.exe','c:\\oaautomatic\\images\\APY.gif')">打开Acdsee</button>
<button οnclick="cq();">重启</button>
网页中打开notepad,word
最新推荐文章于 2024-03-20 13:48:44 发布