cmd 1小时后关机

Criado em: 12 de julho de 2025

Respondido usando O3 por Chat01

Pergunta

cmd 1小时后关机

Pensamento

Providing cmd shutdown instructions

The user is asking how to schedule a shutdown in one hour using the Windows command line. They wrote “cmd 1小时后关机” in Chinese, which I interpret as requesting the command for that task. The command is shutdown -s -t 3600, which will schedule the shutdown. I should also let them know how to cancel it, which is done with shutdown -a. Since this is standard info, I don't need to browse for extra details. I'll respond in Chinese as requested.

Thought for 5 seconds

Resposta

在 Windows 的命令提示字元(cmd)裡,輸入下列指令即可讓電腦在 1 小時(3600 秒)後自動關機:

cmd
shutdown /s /t 3600
  • /s :表示執行關機
  • /t 3600 :設定延遲時間,單位為「秒」—3600 秒就是 1 小時

如果想取消已排程的關機,在同一個(或新的)cmd 視窗輸入:

cmd
shutdown /a
  • /a :表示中止(abort)先前的關機計畫

這樣就可以隨時撤銷排程。

Compartilhar esta Q&A