Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

微軟 Windows 7 定時關機批次檔:關機前 1 分鐘提醒、可自訂多時段排程

編輯:Win7 系統應用技巧

好用的定時關機批次檔,關機前 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,以系統管理員身分執行 即可生效。可自行修改時間與提醒訊息。

Copyright © Windows教程網 All Rights Reserved