脚本实现Cmd.exe窗体的调用
<script>
function runExe(sPath)
{
var oShell = new ActiveXObject("WScript.Shell");
try
{
oShell.Run(sPath);
}
catch(e)
{
document.write("Error Exec Notepad");
}
}
</script>
<a href="javascript:" onclick="runExe('Notepad.exe');">打开记事本</a>
可以传Telnet.exe,ping.exe等控制.
生活还在继续,编码还在继续。