<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:" οnclick="runExe('Notepad.exe');">打开记事本</a>
可以传Telnet.exe,ping.exe等控制.
转载于:https://www.cnblogs.com/wubianluomu/archive/2007/06/19/788862.html