復制代碼 代碼如下:
<script>
<!--打開記事本程序-->
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=new ActiveXObject("wscript.shell");
wsh.run(file);
}
</script>
<input type="button" value="Notepad"/>
<input type="button" value="word" />
<input type="button" value="word" />
新聞熱點
疑難解答
圖片精選