Latest tutorial: Premium Flash Files | Ask Tutorial5! | Subscribe to RSS Register Login Find Hobbies
Advertisement
Do you need more help? You can now Ask Tutorial5! and get free support - Ask a question now!

How to: Create Shutdown and Reboot Shortcuts

(7 votes)
Written by Daniel   
There were times when I was in a hurry and I needed to shutdown the computer very fast. In this tutorial you are going to learn how to create fast one-click shutdown/restart shortcuts.

To create shortcuts you need to right-click the area where you wan the shortcut, for example Desktop, and chose New > Shortcut. The Create Shortcut Wizard will appear. Now in the input field that ask for the name of the application type: “shutdown” (without the quotes). You just created a shutdown shortcut, if you double click the shortcut your computer will shutdown.

create-shortcut.gif

This may not seem like much but you can ad other options/switches to the shortcut making it very versatile. Here are the options you can use when creating a shortcut:

-s : shuts down the computer

-r : restarts the computer

-l : logs of the current user

-t : indicates the delay, in seconds, before the computer is restarted/shutdown/logged of

-c : Displays a message in the shutdown/restart window that appears. The message needs to be enclosed in quotation marks and you can use a maximum of 127 characters.

-f : Forces any application to close instantly.

-a : Aborts the shutdown / restart command.



Here are some examples (remember that the text in bold is the text that you need to enter in the input box when creating a shortcut):

shutdown -s -t 05 -c “Computer is shutting down in 5 seconds”
This one will shutdown the computer in 5 seconds and also display the “Computer is shutting down in 5 seconds” message.

shutdown -r -t 03 -c “Computer is restarting in 3 seconds”
This one will restart the computer in 3 seconds and also prompt you with the “Computer is restarting in 3 seconds” message.

shutdown -s -t 00 -f
This one will create a shortcut that will shutdown the computer really fast with no delay and no messages also forcing all opened applications to close.

shutdown -r -t 00 -f
This shortcut will restart your computer with no delay and no messages also closing all opened applications.

shutdown -l -t 03 “Logging of in 3 seconds”
This shortcut will log off the current user and also display the “Logging of in 3 seconds message”.


Now don't forget the very useful -a switch/option. This is one of those options that can really help you but you never heard about. The -a option stands for ABORT and if used will cancel any current issued shutdown command.
Say for example you created a shortcut to shutdown your computer in 5 seconds but after you pressed it you remembered that there is something more you need to work on your computer.
By creating an ABORT shortcut you will be able to cancel the current shutdown/restart command.

shutdown -a
This shortcut will cancel any previous shutdown/restart command.

You can also customize the look of your newly created shortcuts by changing its ICON. Right-click a shortcut and from the menu chose: Properties > Change Icon.

change-icon.gif

You can also drag and drop the new shortcuts onto your quick launch tool bar for easy and fast access.



Subscribe now via RSS feed and get all the new tutorials

written by Michael , June 23, 2007

Be careful when you ad the shortcuts to your quicklaunch, do not place them near the shortcuts you usually use, you might find yourself trying to start firefox and restarting the computer.
written by antaryami patra , January 11, 2008

i want to add an application which will be automatically run without viewing the windows desktop and user can't use the windows, only user can use my application.
written by Ashish , March 13, 2008

Could there be a shortcut for "Computer Lock" other than Windows Key L

Do you need more help? Ask now!
 

busy