首先編寫這么一個hta的文件:
<html> <head> <script> s = new ActiveXObject("WScript.Shell"); s.run("%windir%\\System32\\cmd.exe /c calc.exe", 0); window.close(); </script> </head> </html>
然后運行:
rundll32.exe url.dll,OpenURL "c:\\Users\\10920\\Desktop\\calc.hta"
結果如下:
會彈出計算器來。