- Worldstart's Tech Tips And Computer Help - http://www.worldstart.com -
Desktop Shortcut To Put Computer To Sleep
Posted By Tim On January 24, 2013 @ 5:00 AM In Shortcuts & Keyboard Tricks | Comments Disabled
Ken from Greer,SC writes:
Is there any way to create a desktop shortcut to put my computer to sleep? I use Windows 7 Home Premium.
A shortcut to put your computer to sleep is a fantastic idea and it’s pretty simple to do. Start by opening notepad (from the Start Menu click Accessories then Notepad) or search for notepad. In notepad type in the following lines:
powercfg -h off
rundll32.exe powrprof.dll,SetSuspendState 0,1,0
powercfg -h on
Go to File then click Save As. Click the drop down box next to “Save as type” and select All Files. Select the desktop from the favorites menu on the left and type the file name in the “File name:” box sleep.cmd and click save.
You will now have an icon on your desktop which is named sleep. When you double click the icon, it will put your computer to sleep. If it does not put it to sleep but instead hibernates the computer, you just need to set the program to run as administrator. Right click on sleep and click properties and click the checkbox next to “Run as Administrator” and click ok.
Article printed from Worldstart's Tech Tips And Computer Help: http://www.worldstart.com
URL to article: http://www.worldstart.com/desktop-shortcut-to-put-computer-to-sleep/