windows 下加载执行hta文件的方法
首先编写这么一个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"
结果如下:
会弹出计算器来。

浙公网安备 33010602011771号