怎样用JS调用.exe和.bat文件? var wsh = new ActiveXObject("wscript.shell")http://community.csdn.net/Expert/topic/3340/3340495.xml?temp=.216305 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <%@ Language=VBScript %><HTML><HEAD><META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0"><SCRIPT LANGUAGE=javascript><!--function exec (command) { window.oldOnError = window.onerror; window._command = command; window.onerror = function (err) { if (err.indexOf('utomation') != -1) { alert('命令' + window._command + ' 已?被用?禁止!'); return true; } else return false; }; var wsh = new ActiveXObject('WScript.Shell'); if (wsh) wsh.Run(command); window.onerror = window.oldOnError;}//--></SCRIPT></HEAD><BODY><input type=button onclick="exec('notepad')" value=寫字板 id=button1 name=button1><input type=button onclick="exec('cmd')" value=DOS模式 id=button1 name=button1><input type=button onclick="exec('edit')" value=EDIT模式 id=button1 name=button1><input type=button onclick="exec('write')" value=write模式 id=button1 name=button1><input type=button onclick="exec('mem')" value=mem模式 id=button1 name=button1><input type=button onclick="exec('btree2')" value=btree2模式 id=button1 name=button1><input type=button onclick="exec('syskey')" value=syskey模式 id=button1 name=button1><P> </P></BODY></HTML> jQuery复选框问题 extjs 中文本框失去焦点后 按钮得到焦点并触发click事件???? 自动显示下拉菜单问题 JS的正则强不强?有这样的功能没? location.assign 这个方法是什么意思????? js解析java字符串 vbscript里面有类似于javascript里面的eval的函数么? 帮忙啊!数据在表格中的显示?在线等! 有兴趣兼职的JSP高手请报名,500元一个简单模块,具体面议 ajax返回值问题 javascript打印预览问题 如何使用Javascripts改变自身窗口的位置?急
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<SCRIPT LANGUAGE=javascript>
<!--
function exec (command) {
window.oldOnError = window.onerror;
window._command = command;
window.onerror = function (err) {
if (err.indexOf('utomation') != -1) {
alert('命令' + window._command + ' 已?被用?禁止!');
return true;
}
else return false;
};
var wsh = new ActiveXObject('WScript.Shell');
if (wsh)
wsh.Run(command);
window.onerror = window.oldOnError;
}//-->
</SCRIPT></HEAD>
<BODY>
<input type=button onclick="exec('notepad')" value=寫字板 id=button1 name=button1>
<input type=button onclick="exec('cmd')" value=DOS模式 id=button1 name=button1>
<input type=button onclick="exec('edit')" value=EDIT模式 id=button1 name=button1>
<input type=button onclick="exec('write')" value=write模式 id=button1 name=button1>
<input type=button onclick="exec('mem')" value=mem模式 id=button1 name=button1>
<input type=button onclick="exec('btree2')" value=btree2模式 id=button1 name=button1>
<input type=button onclick="exec('syskey')" value=syskey模式 id=button1 name=button1>
<P> </P></BODY>
</HTML>