Win7 how to set a key to restart or shut down sleep mode

  

Win7 system sleep mode is very easy to use, I believe everyone knows that it can retain the user's current state without shutting down, go to sleep, want to continue working Can be started quickly. 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.

Recommended: The latest Win7 system

First, on the Win7 system desktop, click the start button at the taskbar, click to enter from the start menu <;All Programs>;&“Accessories&rdquo ;, then right click on “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 Notepad, click & ldquo in 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