You could use this
shutdown.exe will NOT work on Windows 95, 98, 98 SE and ME!
shutdown.exe is a command line utility. This means you have to first run Command Prompt (cmd.exe) from the Start menu and then run shutdown with any combination of switches.
Alternatively, you can also create a shortcut to the shutdown.exe and shutdown your computer by double clicking the icon on your desktop.
To run the shutdown.exe from the Command Prompt:
1. On the Start menu click Run.
2. Type cmd.exe and click OK.
3. Go to the folder with my shutdown utility. If my shutdown.exe is in c:\shutdown type "cd /d c:\shutdown" in the command line. If you fail to do this, you will run the shutdown.exe that is built-in into Windows XP.
4. You can get a list of all supported switches by typing shutdown.
To create a shortcut to shutdown.exe:
1. Right click your dekstop and select New and then click Shortcut.
2. Click the Browse button and go trough your hard drive and select my shutdown.exe. Click OK.
3. In the box with the path to the shutdown.exe add a switch depending on the action you want to perform. For instance, if you want to shutdown your computer add -u in the box. For all supported switched see below.
4. Click Next.
5. Type a descriptive name in the box, like Shutdown computer and click Finish.
6. You can now shutdown your computer by double clicking the icon on your desktop.
Supported switches:
-l -> Log Off.
-u -> Shutdown (Turn Off).
-r -> Restart.
-h -> Hibernate.
-s -> Stand By (Sleep).
-f -> Force the action.
-c -> Cancel a running shutdown.
-t sec -> Delay for number of seconds.
Usage examples:
Log off current user and forces quick shutdown of applications: shutdown -l -f
Initate standby in 30 seconds: shutdown -s -t 30
Cancel all initiated actions: shutdown -c
Shut the computer down: shutdown -u
Restart the computer: shutdown -r
Hibernate the computer: shutdown -h
Wait 10 seconds before shutting down the computer: shutdown -u -t 10
Assign original Windows icons to the shortcut:
1. Right click on the shortcut to the shutdown.exe you created on the dekstop and select properties.
2. Click the Change icon button. A dialog will appear. Just click OK.
3. Click the Browse button and select \windows\system32\shell32.dll and click Open. 4. New dialog will appear listing all the icons in this file. You will also find the same icons that appear on your Start menu. Select the icon you would like to assing to the shortcut and click OK.
5. Click OK.
Assign shortcut key:
1. Right click on the shortcut to the shutdown.exe you created on the dekstop and select properties.
2. Click in the Shurtcut key box and a, like S. This will configure the shortcut to run when you press Ctrl + Alt + S on your keyboard (you have to press all three keys Ctrl, Alt and S at the same time).
3. Click OK.
http://www.budja.com/shutdown/