Search This Blog- Enter the tip # or a keyword(s)

Thursday, June 6, 2013

1334. How to Create One-Click Shutdown and Reboot Shortcuts?

You know Doug this is a stupid little problem, but often on my PC I want to suspend or shutdown my computer and I get tired of digging through the Start Menu to find how to do that.  Is there some way I can create a button or icon I can click on my desktop that I can cause the computer to Sleep, or Restart or Shutdown?  That would help alot.

It is very easy to create a shortcut to do a task on your PC.  The task can be for shutting down your computer or other tasks that you need to repeat over and over again.

If you right click on your desktop, and select New, Shortcut.

When the dialog opens add the shutdown /s /t 0 as  the location.  Then click next.

Then I would give it a Name like "ShutDownPC'  and click finish.

Now you can click on that shortcut on your desktop and your computer will shut down.

ShutDown is the program that Windows will execute, the rest of the command are called switches that allows you to modify the things that will be done. 

the /s says to shutdown, vs. a /r that would tell it to shutdown and restart.

the /t followed by a number says to wait so many seconds before executing the command.

The 'c followed by a message in quotes will be displayed while the command is executed.

When you have a series of commands you will use another technique that incorporates a special file with the extension of .BAT.  We will do a techtip on this soon.

And for you new Windows 8 users this tip is even more useful.  All you need to do once the shortcut has been made simply right button click and select "Pin to Start" and this icon will appear on the Windows 8 start screen.

Have fun.

Create a shortcut and in location type shutdown. 
shutdown -s -t 03 -c “Shutting Down!”
shutdown -r -t 03 -c “Restarting PC!”

Few more switches that you can try by combining this command.

-s : Shuts down the PC.

-l : Logs off the current user.

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

-c : “message text”

Displays a 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.

No comments:

Post a Comment