如何延长批处理延时关机时间?

来源:百度知道 编辑:UC知道 时间:2024/06/06 10:13:29
Vista系统默认shutdown -s -t 最大是600秒, 如何延长关机时间?

@echo off
timeout /t 3600 /nobreak
shutdown /s /f /t 0

@echo off
msg %username% /time:3600 /v /w 等待关机 >nul
shutdown /s /f /t 0

timeout是一个外部命令,请自行下载补丁.
当然也可以用ping,但时间不好控制,..