無需第三方軟體,Windows 10 內建 shutdown 指令配合批次檔 (.bat) 即可實現定時關機、倒數關機、取消關機,適合下載完成、睡前聽音樂等場景。
shutdown_1hr.bat (副檔名必為 .bat)。shutdown -s -t 3600
-s = 關機;-t 3600 = 延遲 3600 秒 (1 小時)。常用時間對照:1800=30分、7200=2時、300=5分。




shutdown -a 按 Enter (指令為 shutdown /a 或 shutdown -a)。進階應用:可建立多個 .bat 檔對應不同時長,或編寫選單式批次檔輸入分鐘數自動計算秒數。Windows 8/8.1 同樣適用。