1 <script language=VBscript>
2 Set WshShell = CreateObject("WScript.Shell")
3 WshShell.Run "%windir%\notepad" ,3,false
4 </script>
5
2 Set WshShell = CreateObject("WScript.Shell")
3 WshShell.Run "%windir%\notepad" ,3,false
4 </script>
5
但是这要看客户端IE的安全设定
1 <script language=javascript>
2 <!--
3 function aa(){
4 var WshShell = new ActiveXObject("WScript.Shell");
5 var oExec = WshShell.Exec("notepad");
6 }
7 -->
2 <!--
3 function aa(){
4 var WshShell = new ActiveXObject("WScript.Shell");
5 var oExec = WshShell.Exec("notepad");
6 }
7 -->