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

Windows XP 內建定時關機完全指南:無需第三方軟體

編輯:XP 系統基礎知識

核心工具:Shutdown.exe

位於 C:\Windows\System32\Shutdown.exe,Windows 2000 可複製此檔同樣使用。

常用指令範例

at 22:00 Shutdown -sShutdown.exe -s -t 3600shutdown -ashutdown -ishutdown -s -fshutdown -s -m \\ComputerNameshutdown -rshutdown -lshutdown -s -c "系統將於 10 分鐘後關機,請儲存檔案"
需求指令(在「執行」或 CMD 執行)說明
固定時間關機 (22:00)利用排程服務,30 秒倒數提醒存檔
倒數關機 (60 分鐘後)-t 參數單位為秒
取消已排程關機中止任意待執行關機
圖形化設定介面開啟 GUI 對話框逐步設定
強制關閉程式並關機-f 強制結束應用程式
遠端關機需管理權限
重新開機-r 關機後重啟
登出目前使用者
自訂關機訊息訊息限 127 字元

參數速查表

  • -s 關機
  • -r 重啟
  • -a 中止
  • -f 強制關閉應用程式
  • -m \\computer 遠端電腦
  • -i 圖形介面(必須為第一參數)
  • -l 登出
  • -t xxx 倒數秒數
  • -c "msg" 顯示訊息

進階應用:批次檔排程

建立 AutoOff.bat:

@echo off
shutdown -s -t 1800 -c "30 分鐘後自動關機,請儲存工作"

搭配「排程工作」每晚固定執行,實現全自動關機。

善用內建 Shutdown.exe,輕鬆實現定時、遠端、訊息提醒等多樣化關機需求,完全免裝額外軟體。

Copyright © Windows教程網 All Rights Reserved