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

Win7 一鍵開啟/關閉休眠模式,記事本建立 .bat 指令碼雙擊執行

編輯:Win7 系統應用技巧

休眠模式保留工作狀態且啟動快,但每次開關需多步操作。建立兩個 .bat 檔一鍵切換。

建立步驟

  1. 開始 → 所有程式 → 附屬應用程式 → 右鍵「記事本」→「以系統管理員身分執行」。
  2. 輸入指令另存為 .bat:
    關閉休眠.bat:@powercfg -h off
    開啟休眠.bat:@powercfg -h on
    記事本指令
  3. 「檔案」→「另存新檔」→ 檔名含 .bat → 儲存類型「所有檔案」→ 分別存為兩個檔案。

桌面雙擊對應 .bat 即可瞬間開啟/關閉休眠,無需進控制台多層選單。
bat 檔案

Copyright © Windows教程網 All Rights Reserved