shut.bat 定时关机文件
set /p time=“How much seconds will it take to turn off the computer?”
shutdown /s /t “%time%”
pause
reboot.bat 定时重启文件
set /p time=“How much seconds will it take to restart the computer?”
shutdown /r /t “%time%”
pause
执行流程
双击shut.bat或reboot.bat
![](https://img.laitimes.com/img/9ZDMuAjOiMmIsIjOiQnIsIyZuBnLwczN1EDM1ETMxMTNwkTMwIzLc52YucWbp5GZzNmLn9Gbi1yZtl2Lc9CX6MHc0RHaiojIsJye.png)
输入时间后按下回车【enter】即可,一次不够再按一次