欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

JavaScript調(diào)用客戶端的可執(zhí)行文件(示例代碼)

 更新時(shí)間:2013年11月28日 10:09:01   作者:  
這篇文章主要是對JavaScript調(diào)用客戶端的可執(zhí)行文件(示例代碼)進(jìn)行了介紹,需要的朋友可以過來參考下,希望對大家有所幫助

復(fù)制代碼 代碼如下:

<script>
<!--打開記事本程序-->
function openNotepad(){
 var wsh=new ActiveXObject("wscript.shell")
 wsh.run("notepad.exe")//如果在“運(yùn)行”可以運(yùn)行就可以在此直接寫,否則要寫上絕對路徑
}
<!--打開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" id="notepad" value="Notepad" onclick="openNotepad();"/>
<input type="button" id="word" value="word"  onclick="openWord();"/>
<input type="button" id="word" value="word"  onclick="openTxt('c://caipiao.txt');"/>

相關(guān)文章

最新評論