Win7 how to set a key to restart or close the sleep mode to simplify the operation

  

Win7 system sleep mode is very easy to use, I believe we all know that it can retain the user's current state without shutting down, go to sleep, want You can start quickly when you continue working. It saves a lot of time compared to turning it off. But every time you turn on hibernation, you have to do a series of operations. Is there any way to create a one-button restart or to turn off hibernation mode? Of course, the following method is a small trick for everyone.

First, on the Win7 system desktop, click the start button at the taskbar, click to enter "all programs" from the start menu, and then right click "& notepad" ;, choose to run as an administrator.

Second, in the Notepad window opened by Win7, enter the corresponding 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 feature, type @powercfg-h on. The operation is as shown in the figure below.

Third, then just create a good notebook, click on the menu <; file & rdquo; - & ldquo; save as & rdquo;, save the file 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, and 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