Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Windows 綜合教學 >> 關於 Windows

Win10 批次檔實現定時關機,shutdown 指令秒懂無需第三方軟體

編輯:關於 Windows

Win10 內建 shutdown 指令,寫成 .bat 批次檔即可定時關機:

  1. 桌面新建文字文件,輸入 shutdown -s -t 3600 (3600 秒 = 1 小時)。
  2. 另存為:類型「所有檔案」,檔名 shutdown_1hr.bat (須 .bat 副檔名)。
  3. 雙擊執行,系統將在 1 小時後自動關機。

常用時間參數對照

  • 10 分鐘:600 秒
  • 30 分鐘:1800 秒
  • 2 小時:7200 秒

取消定時關機

Win+R → shutdown -a → 確定。

Win8 同理可用,參考《Win8 系統下如何設定一鍵關機》。

Copyright © Windows教程網 All Rights Reserved