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

Windows 7 使用 shutdown 指令排程定時關機:命令提示字元一行搞定

編輯:Windows 7 系統介紹

無需第三方軟體,Windows 7 內建 shutdown 指令配合 at 排程即可實現定時關機:

操作步驟

  1. 開始功能表 → 所有程式 → 附屬應用程式 → 右鍵「命令提示字元」→「以系統管理員身分執行」。
  2. 輸入指令(例:晚上 23:00 關機):
    at 23:00 shutdown -s
    按 Enter 執行。

常用參數說明

  • shutdown -s:關機
  • shutdown -r:重新開機
  • shutdown -h:休眠
  • shutdown -a:取消已排程的關機
  • at 23:30 shutdown -s -t 60:23:30 執行,延遲 60 秒關機(給使用者存檔時間)

排程工作會在背景執行,到時自動執行關機動作。

Copyright © Windows教程網 All Rights Reserved