設置電腦倒計時關機的命令

字號:


    <1>點 "桌面左下角" -> "開始" -> "運行"
    <1>然后彈出以下對話框,輸入 shutdown -s -f -t 50 at 24:00 -> "確定"
    shutdown -s -f -t 50 at 24:00 //代表在24:00時會有50秒鐘提示后自動關閉,
    取消的方法是shutdown -a
    操作命令
    shutdown.exe -a 取消關機
    shutdown.exe -s 關機
    shutdown.exe -f 強行關閉應用程序。
    shutdown.exe -m \計算機名 控制遠程計算機。
    shutdown.exe -i 顯示圖形用戶界面,但必須是Shutdown的第一個參數。
    shutdown.exe -l 注銷當前用戶。
    shutdown.exe -r 關機并重啟。
    shutdown.exe -t時間 設置關機倒計時。 設置關閉前的超時為 xxx 秒。對于windows 2003 系統,有效范圍是 0-600,默認為 30
    shutdown.exe -c"消息內容" 輸入關機對話框中的消息內容(不能超127個字符)。
    比如你的電腦要在24:00關機,可以選擇“開始→運行”,輸入“at 24:00 Shutdown -s”,這樣,到了24點,電腦就會出現“系統關機”
    對話框,默認有30秒鐘的倒計時并提示你保存工作。
    如果你想以倒計時的方式關機,可以輸入“Shutdown.exe -s -t 7200”,這里表示120分鐘后自動關機,“7200”代表120分鐘。 如果
    想取消的話,可以在運行中輸入“shutdown -a”。另外輸入“shutdown -i”,則可以打開設置自動關機對話框,對自動關機進行設置。
    讓Windows 2000也實現同樣的效果,可以把Shutdown.exe復制到系統目錄System32下
    eg:shutdown.exe -s -m \z20235 當然你還可以把shutdown與at命配合使用來定時關機,會更加的精確,
    格式:at 關機時間 shutdown 選項
    實際應用
    at 10:45 shutdown -s -t 20
    就是讓機子在10:45關機,并倒計時20秒。須要注意的是在使用它時須先打開 “Task Scheduler”服務。