不是的,在 Windows Update 网站里,当更新完毕的时候会提示你重新启动计算机吗?不知道这个是怎样做出来的?
代码我自己没有试过. 一段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>
一段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>
rundll32.exe user.exe,exitWindowsExecwsh.sendKeys("{UP}~R~")