Recipe 6.16. Creating a Reboot or Shutdown Shortcut


You want to reboot or shut down your PC quickly, and customize the way that it shuts down.


Using a graphical user interface

For a fast way to shut down or reboot your PC, create a shortcut on your desktop, and then double-click the shortcut.

To create the shortcut, right-click the desktop and select New Shortcut. The Create Shortcut wizard appears. On the first screen, for the location of the item, type shutdown, followed by one of several switches, like this:

shutdown -r -t 01 -c "Rebooting your PC"

Click Next, and in the next screen, type in the name of the shortcut. This is what will appear on the shortcut on the desktop. Then click Finish. To shut down or reboot, double-click the shortcut.

The example above would create a shortcut that would reboot your PC after a one-second delay and display the message "Rebooting your PC." You can instead tell the PC to reboot or you can have it log you off instead of shutting down. Table 6-3 lists the switches you can use with shutdown.

Table 6-3. Switches you can use with shutdown


What it does


Shuts down the PC


Logs the current user off.

-t nn

Indicates the delay, in seconds, before performing the action.

-c "messagetext"

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


Forces any running applications to shut down.


Restart the PC.

Windows XP Cookbook
Windows XP Cookbook (Cookbooks)
ISBN: 0596007256
EAN: 2147483647
Year: 2006
Pages: 408

Similar book on Amazon © 2008-2017.
If you may any questions please contact us: