好用的定時關機批次檔,關機前 1 分鐘彈出提醒訊息,支援多時段排程:
@echo off at 22:50 every:M,T,W,Th,F,S,Su shutdown -s -t 60 -c "很晚了,該睡覺了!" at 13:50 every:M,T,W,Th,F,S,Su shutdown -s -t 60 -c "要停電了,快存檔吧!" at 15:50 every:M,T,W,Th,F,S,Su shutdown -s -t 60 -c "要停電了,快存檔吧!" at 9:50 every:M,T,W,Th,F,S,Su shutdown -s -t 60 -c "要停電了,快存檔吧!" at 5:50 every:M,T,W,Th,F,S,Su shutdown -s -t 60 -c "要停電了,快存檔吧!" echo 已經完成! pause&end
儲存為 定時關機.bat,以系統管理員身分執行 即可生效。可自行修改時間與提醒訊息。