Desktop link to sleep

  • Thread starter Thread starter Norman Swartz
  • Start date Start date
N

Norman Swartz

My previous keyboard had a key "Sleep". But my new keybpard does not. So
I'd like to add a link to "Sleep" on my desktop, or better, in the Quick
Launch toolbar. How can I do this? Thanks.
 
My previous keyboard had a key "Sleep". But my new keybpard does not. So
I'd like to add a link to "Sleep" on my desktop, or better, in the Quick
Launch toolbar. How can I do this? Thanks.


Norman:

You go to your desktop, right click and create a new shortcut, then
for the location type in one of the below commands (in your case,
%windir%\System32\rundll32.exe powrprof.dll,SetSuspendState )

Shutdown: %windir%\System32\shutdown.exe -s
Reboot: %windir%\System32\shutdown.exe -r
Logoff: %windir%\System32\shutdown.exe -l
Standby: %windir%\System32\rundll32.exe powrprof.dll,SetSuspendState
Hibernate: %windir%\System32\rundll32.exe powrprof.dll,SetSuspendState
Hibernate

HTH & GL

John


--
\\\||///
------------------o000----(o)(o)----000o----------------
----------------------------()--------------------------
'' Madness takes its toll - Please have exact change. ''

John Dulak - 40.4888ºN,79.899ºW - http://tinyurl.com/2qs6o6
 
Norman Swartz said:
My previous keyboard had a key "Sleep". But my new keybpard does not. So
I'd like to add a link to "Sleep" on my desktop, or better, in the Quick
Launch toolbar. How can I do this? Thanks.

Create a shortcut on your desktop and put this in the box:

%windir%\system32\rundll32.exe PowrProf.dll, SetSuspendState

Call it what you want, save it, then move it to your Quick Launch toolbar.

If Hibernation is enabled of your PC, then that command will put it into
hibernation. If Hibernation is NOT enabled, then it will put the PC into
Standby (Sleep) mode.
 
Norman Swartz said:
My previous keyboard had a key "Sleep". But my new keybpard does not. So
I'd like to add a link to "Sleep" on my desktop, or better, in the Quick
Launch toolbar. How can I do this? Thanks.


Using rundll32.exe PowrProf.dll, SetSuspendState in a shortcut is an
either/or situation. If you want it to put your computer into Standby you'll
have to disable Hibernation. An alternative is to use a program from
Microsoft called psshutdown.

You can download psshutdown here:

PsShutdown v2.52
http://technet.microsoft.com/en-us/sysinternals/bb897541.aspx

Extract all the files from the zip file and put a copy of psshutdown.exe in
your C:/Windows/System32 folder. Create a shortcut with the following
command as the target. This command will put your computer into Standby mode
immediately.

psshutdown.exe -d -t 00

This command will result in the computer hibernating immediately.

psshutdown.exe -h -t 00

Good luck

Nepatsfan
 
Back
Top