How to set a key to turn off or turn on the sleep mode

  
on the Win7 system 1. Click the start button on the taskbar on the desktop, click to enter “All Programs” from the Start menu, and then right click ““ This & rdquo;, choose to run as an administrator;
2, in Win7 open Notepad window, enter the appropriate command to execute. For example, if you want to turn off the hibernation feature, type the @powercfg-h off command. If you want to restart the hibernation function, then enter @powercfg-h on;
3, then the newly created notebook, click on the menu <;file”-“ save as ”, the file Save as a .bat file. Remember that the two commands should be entered separately in Notepad, and then named "Don't sleep" and "Open sleep". If you want to turn off or turn on hibernation mode, then double-click on the file you have created.
So we made two easy-to-use notepad command icons, put them on the desktop, want to restart hibernation or turn off hibernation, just double-click the file. Let the function of hibernation become more convenient and convenient, and friends in need, try to operate it.
Copyright © Windows knowledge All Rights Reserved