Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Sleep Shortcut - Create



Sleep Shortcut - Create

How to Create a Sleep Shortcut in Windows
Published by Brink
05 Feb 2010
Published by

How to Create a Sleep Shortcut in Windows

information   Information
This will show you how to create or download a Sleep shortcut to put your computer to sleep with. You can also Pin to Taskbar or Pin to Start Menu this shortcut, or move where you like for easy use.
Tip   Tip
If you would also like to create a keyboard shortcut key to use to open the shortcut with from either method below, then see: How to Create a Keyboard Shortcut for a Program





METHOD ONE
A Sleep Shortcut from a VBS File

NOTE: This method for a sleep shortcut will allow you to put your computer to sleep no matter if hibernate is enabled or disabled, or what you have your power plan settings set to.
1. Set your Start Menu power button to Sleep. (see screenshot below)
WARNING: This Sleep shortcut will do whatever you have your Start Menu power button set to, so it's important to have this set to Sleep for this shortcut to put your computer to sleep.
Name:  Start_Menu_PWR_Button.jpg
Views: 10875
Size:  58.0 KB
2. Click on the download button below to download the file below.
METHOD_1_Sleep_Shortcut.zip
download
3. Click on Save, and save the .zip file to the desktop.

4. Select and extract both the Sleep shortcut and "Sleep Shortcut" folder to the desktop.

5. Open the "Sleep Shortcut" folder, then right click on the Sleep.vbs file, click on Properties, General tab, and on the Unblock button. (See screenshot below)
NOTE: If you do not have a Unblock button under the General tab, then the shortcut is already unblocked and you can continue on to step 6.
Name:  Unblock_VBS.jpg
Views: 10819
Size:  129.0 KB
6. Right click on the "Sleep Shortcut" folder on the desktop, and click on Cut.

7. Open a Windows Explorer window and navigate to the C:\Program Files folder, then right click on the C:\Program Files folder and click on Paste. (See screenshot below)
Sleep Shortcut - Create-method-1_step1.jpg
8. If prompted, click on Continue and Yes to approve copying the "Sleep Shortcut" folder into the C:\Program Files folder.

9. Right click on the Sleep shortcut, and click on Properties, General tab, and on the Unblock button. (See screenshot below)
NOTE: If you do not have a Unblock button under the General tab, then the shortcut is already unblocked and you can continue on to step 10.
Name:  Unblock_Sleep_VBS.jpg
Views: 10835
Size:  115.9 KB
10. Move the Sleep shortcut on the desktop to where you like for easy use.

11. When done, you can delete the downloaded .zip file on the desktop if you like, or save it to use again.






METHOD TWO
A Normal Sleep Shortcut

NOTE: This method for a sleep or standby shortcut will allow you to put your computer to sleep, but you must have hibernate disabled for this shortcut to not have your computer hibernate instead.



OPTION ONE
Download the Shortcut
1. Click on the download button below to download the Sleep.zip file.
download
2. Click on Save, and save the .zip file to the desktop.

3. Open the .zip file and extract the Sleep shortcut to the desktop.

4. Right click on the Sleep shortcut, and click on Properties, General tab, and on the Unblock button. (See screenshot below)
NOTE: If you do not have a Unblock button under the General tab, then the shortcut is already unblocked and you can continue on to step 5.
Name:  Unblock.jpg
Views: 10766
Size:  125.5 KB
5. Move the shortcut to where you like for easy use.

6. When done, you can delete the downloaded .zip file on the desktop if you like, or save it to use again.





OPTION TWO
Manually Create the Shortcut
1. Right click on a empty area on desktop, and click on New and Shortcut.

2. Type the command below into the location area, and click on the Next button. (See screenshot below)

Code:
rundll32.exe powrprof.dll,SetSuspendState
Name:  Step1.jpg
Views: 10793
Size:  93.6 KB
3. Type Sleep for the name, and click on the Finish button. (See screenshot below)
NOTE: You can name this anything you would like though.
Name:  Step2.jpg
Views: 10722
Size:  71.5 KB
4. Right click on the new Sleep shortcut on the Desktop and click on Properties.

5. Click on the Shortcut tab, then click on the Change Icon button. (See screenshot below)
Name:  METHOD-2_Step3.jpg
Views: 10768
Size:  93.6 KB
6. In the line under "Look for icons in this file", type the location below and press Enter. (See screenshot below)

Code:
C:\Windows\System32\imageres.dll
Name:  Step4.jpg
Views: 10770
Size:  84.6 KB
7. Select the icon highlighted in blue above and click on OK. (See screenshot above)
NOTE: You can use any icon that you would like instead though.

8. Click on OK. (See screenshot below step 5)

9. Disable hibernate.

10. Move the shortcut to where you like for easy use.
That's it,
Shawn




05 Feb 2010   #1
IggyAZ

Windows 7 Ultimate (32 bit)
 
 

This is all I use on my desktop shortcut.
C:\Windows\System32\rundll32.exe Powrprof.dll,SetSuspendState Sleep

My System SpecsSystem Spec
05 Feb 2010   #2
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Hello Iggy,

Yeah, it does the same thing as in METHOD TWO with hibernate disabled. With hibernate enabled, it hibernated instead of sleep for me as well though.
My System SpecsSystem Spec
28 Aug 2010   #3
magoood

Windows 7 x64
 
 
It shuts down my PC instead

I tried using this tutorial in order to sleep my PC easily but what actually happened is that my PC turned off completely (COMPLETE SHUTDOWN). Any clue of what is wrong? I wish I can sleep without having hibernation disabled because I need to hibernate my PC after finishing my day.

I'm running windows 7 x64

Thanks in advance.
My System SpecsSystem Spec
.


28 Aug 2010   #4
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Hello Magoood,

Which Method/option did you use?
My System SpecsSystem Spec
28 Aug 2010   #5
magoood

Windows 7 x64
 
 

Quote   Quote: Originally Posted by Brink View Post
Hello Magoood,

Which Method/option did you use?
I used the visual basic script file in Method 1 and I used the VBS only without the need of anything else. I assigned a button on my keyboard (Microsoft Digital Media 3000) for this vbs file and when I pressed it, I was astonished to find all open windows and programs are closed and windows followed them!
My System SpecsSystem Spec
28 Aug 2010   #6
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Magoood,

It's due to what your Start Menu power button is set to. It will need to be set to Sleep for the shortcut to put the computer to sleep instead of shutdown. I have updated the tutorial and add step 1 under METHOD ONE for this to help.
My System SpecsSystem Spec
28 Aug 2010   #7
magoood

Windows 7 x64
 
 

Quote   Quote: Originally Posted by Brink View Post
Magoood,

It's due to what your Start Menu power button is set to. It will need to be set to Sleep for the shortcut to put the computer to sleep instead of shutdown. I have updated the tutorial and add step 1 under METHOD ONE for this to help.
Thanks for the reply. Yes, my start menu power button was set to shut down so I set it to standby as you wanted but now what the vbs file is doing is that it brings me the "Shut Down Windows" Dialog box and that's it! I have to do an extra step which is clicking OK (because sleep is the selected option by default) but I believe this is not the proper behavior.
My System SpecsSystem Spec
28 Aug 2010   #8
Brink
Microsoft MVP

64-bit Windows 8.1 Enterprise
 
 

Magoood,

With my Start Menu power button setting set to Sleep, the shortcut puts my computer to sleep no matter what I have set in Power Options or if hibernate it enabled or disabled.

As a test, delete the downloads from the tutorial, then start over on METHOD ONE in tutorial to see if may just be a simple mistake somewhere.

If it still doesn't work after redoing it, then could you post back with screenshots of all related settings? (start menu power button, all settings under "Sleep" in advanced power settings) This way I'll test it with the same settings that you are using.
My System SpecsSystem Spec
28 Aug 2010   #9
magoood

Windows 7 x64
 
 

I tried everything from scratch but still same result.
Here you are all the stuff you requested. Hope this is exactly what you want.

My System SpecsSystem Spec
Comment

 Sleep Shortcut - Create




Tutorial Tools



Similar help and support threads for2: Sleep Shortcut - Create
Windows 7 Tutorial Category
Solved Can't create a New Shortcut General Discussion
create shortcut General Discussion
Create shortcut General Discussion
How to create Shortcut 'SED' instead of 'SED.exe - Shortcut'? General Discussion
Create a System Image Shortcut - Create Tutorials
Log Off Shortcut - Create Tutorials
Sleep problem; Goes into deeper sleep w/shortcut General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 07:06 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33