脚本实现Cmd.exe窗体的调用

it2022-05-08  8

<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


最新回复(0)