不需安裝任何第三方軟體,Windows 內建 shutdown.exe 與 at 指令即可輕鬆實現定時關機、倒數關機、遠端關機、取消關機等功能。以下為實用速查手冊。
at 指令——指定具體時間點執行at 18:00 shutdown -s
電腦將在 18:00 自動關機。時間可自由更改。-s 為關機控制碼,不可省略。
shutdown.exe 參數組合——功能更強大shutdown.exe 位於 C:\Windows\System32。Windows 2000 若無此檔,可從 XP 複製過來即可使用。
at 22:00 shutdown -sshutdown -s -t 3600-t 後接秒數,3600 秒 = 60 分鐘。shutdown -s -fshutdown -r -t 60shutdown -lshutdown -i(必須為第一個參數)shutdown -s -t 300 -c "系統將在 5 分鐘後關機,請儲存檔案!"shutdown -s -m \\ComputerNameshutdown -a| 參數 | 功能說明 |
|---|---|
-s | 關閉本機電腦 |
-r | 關機並重新開機 |
-l | 註冊登出目前使用者 |
-a | 中止已排程的關機/重啟 |
-f | 強制關閉應用程式(不提示儲存) |
-m \\ComputerName | 指定遠端電腦名稱 |
-t xxx | 設定倒數秒數(0-315360000) |
-c "message" | 關機對話框顯示的訊息(最多 127 字元) |
-i | 顯示圖形化使用者介面(必須為首參數) |
shutdown -s -t 3600 -c "1小時後關機",命名為「1小時後關機」,點擊即啟動倒數。提醒:執行關機指令前請確認已儲存所有工作,-f 參數會強制關閉程式導致未存資料遺失。善用 shutdown -a 隨時取消誤操作。