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

Windows 2000/XP 巧拒強制關機/重啟:shutdown.exe -a 緊急取消指令與完整參數詳解

編輯:XP 常見問題解答

衝擊波、震盪波病毒導致電腦倒數重啟,中斷工作造成資料遺失。XP 透過 Shutdown.exe (位於 Windows\System32) 執行關機,病毒亦呼叫此程式。**阻止強制關機 = 取消對 shutdown.exe 的呼叫**。

緊急取消強制關機

彈出強制關機對話框時:**快速按 Ctrl+R 開啟「執行」 → 輸入 shutdown.exe -a (注意有空格) → Enter** → 對話框消失 → 從容處理病毒。

此法適用其他原因引起的強制關機。

shutdown.exe 重要參數完整表

參數功能
-a取消關機
-f強制關閉應用程式
-m \\電腦名控制遠端電腦
-i顯示圖形介面 (必須為第一個參數)
-l登出目前使用者
-r關機並重新開機
-t 時間設定關機倒數計時 (秒)
-c "訊息內容"關機對話框顯示訊息 (最多 127 字元)

應用範例

  • 定時關機:at 23:00 shutdown -s (23:00 出現關機對話框,預設 30 秒倒數)。
  • 倒數關機:shutdown.exe -s -t 3600 (60 分鐘後自動關機,3600 秒)。
  • 取消排程:shutdown -a。
  • 圖形化設定:shutdown -i 開啟自動關機設定對話框。

Windows 2000 使用 shutdown.exe

Win2000 原調用 Shell32.dll 關機,但可將 XP 的 Shutdown.exe 複製至 Win2000 System32 目錄,即可同樣使用。

shutdown.exe 還有更多強大功能,讀者可進一步實踐探討。

Copyright © Windows教程網 All Rights Reserved