Is there any way to make a desktop shortcut for the sleep command?

Desktop shortcut for the sleep command?

 

Is there any way to make a desktop shortcut for the sleep command? I can't find the actual location that the sleep button on the start menu points to. It has to point somewhere! Please, if anyone knows how i can create this shortcut, help!!! Thanks a bunch!

Answer
Answer
 

Tar-ter,

To create a shortcut that will execute the sleep command in Vista:

  • Right Click in the desired location (On the Desktop or in a folder)
  • Select New -> Shortcut
  • In the “Type the location of the item” field enter the following
  • Rundll32.exe Powrprof.dll,SetSuspendState Sleep
  • Click Next
  • This will create a shortcut with the name rundll32,
  • Right Click the shortcut, select Rename and type in Sleep

 You can now open this shortcut whenever you desire to put your computer into sleep mode.

 

Note: You can replace the default icon with a Shutdown one by:

  • Right Click the created shortcut, select Properties -> Change Icon
  • Navigate to this link in theLook for icons in this file:” field:
  • %SystemRoot%\system32\SHELL32.dll icons
  • Find the desired icon.
  • Click Ok.

Thank you for using the Microsoft Vista Support Community.


Rami
Microsoft Answers Support Engineer
Visit our Microsoft Answers Feedback Forum and let us know what you think.
Rami

64 people found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated May 7, 2024 Views 209,339 Applies to: