Sign up for FREE daily Updates.

How To Create One Click Shutdown and Restart Shortcuts

Leave a Comment Follow me on twitter

Shutting down a personal computer does not involve any tedious process though, but the entire process can be reduced to a simple One Click Shutdown & Restart.This gives you a quicker way to shutdown windows without navigating through the start menu, or using a third party shutdown utility. You can also do much more with a shutdown shortcut than merely shutting down a personal computer. Adding combination of several switches can do extra duties for you with shutdown shortcut.

First,
Right Click on desktop and choose New, and then Click on Shortcut.
The create shortcut wizard appears. Type Shutdown into the box as the location, afterward click on next. Type any name for the shortcut (in my case I typed Turn Off Computer) and click Finish.

Second,
what we have to do now is to add combination of switches for the shortcut to perform the action that we want. Right Click on the shortcut you just created and choose properties. Within the Target box you will find this command %windir%\system32\shutdown.exe. Place the cursor at the end of the command (i.e after the last e of the .exe) and press space. Add -S -f -t 00 to the command. You will have something similar to this %windir%\system32\shutdown.exe -S -f -t 00

Third, 
click on Change Icon button and pick an icon of your choice for the shortcut. Click on ok after everything and double click on the shortcut to shutdown you computer..

If your computer fail to shutdown, cross check your switches and make sure there are spaces between all the switches.

Finally, 
Drag the shortcut to your Quick launch Toolbar for One Click Shutdown.

Note:  
You can also give it a keyboard shortcut. By pressing key combination (eg CTRL + ALT + S) will perform the action.


Switches and Meaning:

You can use any combination of the following switches to make the shortcut to perform different actions..

-s
Shuts down the PC.

-l
Logs off the current user.

-t 00
Indicates the duration of delay, in seconds, before performing the action.

-c "message"
Displays the message in the System Shutdown window. A maximum of 127 characters can be used. The message must be enclosed in quotation marks.

-f
Forces any running applications to shut down.

-r
Reboots the PC.

-i
Display the shutdown interface (GUI). MUST be the first option!


Example:
The following command will reboot your PC after ten-seconds delay and display the message "Will Be Back Soon"
%windir%\system32\shutdown.exe -r -f -t 10 -c "Will Be Back Soon"



But you can do much more with a shutdown shortcut than merely shut down your PC. You can add any combination of several switches to do extra duty, like this:

shutdown -r -t 01 -c “Rebooting your PC”

Double-clicking on that shortcut will reboot your PC after a one-second delay and display the message “Rebooting your PC.” The shutdown command includes a variety of switches you can use to customize it. Table 1-3 lists all of them and describes their use.

I use this technique to create two shutdown shortcuts on my desktop—one for turning off my Windows, and one for rebooting. Here are the ones I use:

shutdown -s -t 03 -c “Bye Bye Aniket!”
shutdown -r -t 03 -c “Ill be back Aniket !”



Having any problem?
Feel free to ask here..

That's All.!!
Enjoy..:)

Share this Article :


You may Also Like:


Premium WordPress Themes