Forum Home
Press F1
 
Thread ID: 52859 2005-01-01 03:53:00 Creating a Standby link somebody (208) Press F1
Post ID Timestamp Content User
309458 2005-01-01 03:53:00 Running WinXP Home with SP2

I'm trying to create shortcut to "Standby" my computer, which I can map to one of the shortcut keys on my keyboard. I have hunted through Google, through PressF1's search, and cannot find anything.

The shutdown.exe tool does not seem to have a standby function.

Anyone have any ideas?
somebody (208)
309459 2005-01-01 03:58:00 Try this

Then, back at your desktop, use the following command lines for your shortcuts.

Shutdown
shutdown2.exe -u -t 0

Restart
shutdown2.exe -r -t 0

Log Off
shutdown2.exe -I

Note the -t switch, this stands for TIME. -t 0 means the shutdown or reboot action will begin immediately without delay after clicking your shortcut. If you wanted to hold off the shutdown and restart for a certain length of time, for whatever reason, then just indicate the number of seconds after the -t. i.e. -t 30 would wait 30 seconds before shutting down or restarting.

If you'd like to try the default shutdown utility shipped with XP and 2k, click Start>Run and type
SHUTDOWN /?
This will show you all the options you can use with it.

You can also use this method to see all your options for shutdown2.exe.Just type
SHUTDOWN2 /?
instead.

You can also create hibernate or standby shortcuts. For this, Windows own shortcut utility works fine.

For standby use:
shutdown.exe -s

For hibernate use:
shutdown.exe -h

You can use the - t switch with the above as well. In fact , you can use the -t with any of the shutdown actions. i.e.: shutdown.exe -s -t 45 would countdown 45 seconds before beginning standby.

You might also find it convenient to assign keyboard shortcuts to any of your shutdown shortcuts. A handy one might be for the straight shutdown shortcut. Assign it to Ctrl-Alt -S, for example.
To do this:
Right click the shutdown shortcut you created on your desktop and go to Properties.
There you will see the Shortcut key box. Just type S in the box and it will change to Ctr-Alt-S.
Click Ok to save your changes and you are done.
Speedy Gonzales (78)
309460 2005-01-01 04:00:00 Or even better get a kb with a Sleep function on it. Speedy Gonzales (78)
309461 2005-01-01 04:07:00 A friendly tip Speedy Gonzales, if you do a cut and paste of someone else's work it is only polite to acknowledge the original author to give them their due credit for it. Just add a link to the source of your copied information in your post. Jen (38)
309462 2005-01-01 04:41:00 Or even better get a kb with a Sleep function on it.
This is a brand new keyboard, which I like (wireless plus anti-RSI) and I don't intend on replacing it.

I have tried the shutdown -s function, and all that does is shut down my computer - I actually Googled and found the exact same article which you posted.

Thanks for your help anyway.

Anyone with any other ideas??
somebody (208)
309463 2005-01-01 07:08:00 bump somebody (208)
309464 2005-01-01 08:46:00 Running WinXP Home with SP2

I'm trying to create shortcut to "Standby" my computer, which I can map to one of the shortcut keys on my keyboard. I have hunted through Google, through PressF1's search, and cannot find anything.

The shutdown.exe tool does not seem to have a standby function.

Anyone have any ideas?I'm not sure how you can map a keypress to "standby"
You can have a look at Power Options in Control Panel and press the "Power Off" button which can put the computer in standby mode. You can set the Power Off to go to standby mode.

I tried this using WinXP Pro. I might add this worked for me.

These things are possibly dependant on your BIOS, O/S and Keyboard as well.

I might add that most keypresses can be used for different functions.

You might need to remap a function key or combination.
Elephant (599)
309465 2005-01-01 09:01:00 I'm not sure how you can map a keypress to "standby"
You can have a look at Power Options in Control Panel and press the "Power Off" button which can put the computer in standby mode. You can set the Power Off to go to standby mode.

I tried this using WinXP Pro. I might add this worked for me.

These things are possibly dependant on your BIOS, O/S and Keyboard as well.

I might add that most keypresses can be used for different functions.

You might need to remap a function key or combination.
Yeah - I want to remap a function key (that part is easy), to put the computer into sleep mode. I used to be able to do it, as my old keyboard had a "sleep" button. I remember someone had posted a particular way to create a shortcut which would do it, but I can't remember or find it.
somebody (208)
309466 2005-01-01 09:24:00 This works

rundll32.exe powrprof.dll,SetSuspendState 0,1,0

Create a new shortcut on the desktop and assign it a F key thru properties/shortcut key. Once u make the shortcut.
Speedy Gonzales (78)
309467 2005-01-01 09:40:00 This works

rundll32.exe powrprof.dll,SetSuspendState 0,1,0

Create a new shortcut on the desktop and assign it a F key thru properties/shortcut key. Once u make the shortcut.I cut and pasted the rundll command above into Start > Run and executed. The computer went into Standby mode quite happily.

I am not sure why we need to get into Standby mode in the first place but I do know when I came out of Standby I had to redial my Internet connection.
Elephant (599)
1 2