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

Win7 工作排程器設定自動關機:指令參數完整教學

編輯:Win7 系統基礎知識

利用內建「工作排程器」+ shutdown 指令,實現定時/單次/週期性自動關機,無需第三方軟體。

建立基本任務步驟

  1. 「開始」→「所有程式」→「附屬應用程式」→「系統工具」→「工作排程器」 → 右側「建立基本工作」。
  2. 命名/描述 → 下一步。
  3. 觸發條件:選「每天」「每週」「每月」「單次」等 → 設定具體時間。
  4. 動作:選「啟動程式」 → 程式:shutdown → 引數:-s -t 3600(3600 秒 = 1 小時後關機)。
  5. 完成嚮導,任務列表中可右鍵「執行/停用/刪除/匯出」。

開啟工作排程器
建立基本工作
命名描述
觸發條件設定
詳細時間頻率
動作選啟動程式
shutdown 參數設定
完成任務摘要

shutdown 關鍵參數

  • -s 關機
  • -f 強制關閉應用程式
  • -t xxx 等待秒數
  • -a 取消已排程關機(在命令提示字元執行 shutdown -a)
亦可搭配批次檔執行備份、清理等前置動作再關機,發揮排程器自動化優勢。
Copyright © Windows教程網 All Rights Reserved