网页中使用 Wscript.Shell 执行文件

<script language=VBscript>
Set WshShell = CreateObject("WScript.Shell")
WshShell.Run "%windir%\notepad" ,3,false
</script>
 
<script language=javascript>
function aa(){
 var WshShell = new ActiveXObject("WScript.Shell");
 var oExec = WshShell.Exec("notepad");
}
</script>

你可能感兴趣的:(script)