Create Shutdown and Restart Shortcut
71How to Create Shutdown, Restart and Log off Shortcut
The following codes are usually typed in command prompt or run window
These are the arguments or option for shutdown
-i Display GUI interface, must be the first option
-l Log off (cannot be used with -m option)
-s Shutdown the computer
-r Shutdown and restart the computer
-a Abort a system shutdown
-m \\computer name (remote computer to shutdown, restart or abort)
-t xx Set timeout for shutdown to xx seconds
-c "comment" Shutdown comment (maximum of 127 characters)
-f Force running applications to close without warning
-d [u][p]:xx:yy The reason code for the shutdown
u is the user code
p is the planned shutdown code
xx is the major reason code (positive integer less than 256)
yy is the minor reason code (positive integer less than 65536)
Example of usage:
shutdown -r (means restart the computer)
shutdown -r -f (means force restart the computer and close running application without warning)
shutdown -s -t 10 (means 10 second countdown before shutdown)
shutdown -a (means abort shutdown) you can't abort a shutdown if it is not counting down or without a countdown.
These are some codes that i use to shutdown or log off or restart my computer.
Code for shutdown
shutdown -s -t 10 -c "Shutting down in 10 seconds"
The output should be like these picture =>
Code for restart
shutdown -r -t 10 -c "Restarting in 10 seconds"
Code for log off
shutdown -l -t 10 -c "logging off in 10 seconds"
Just try to mix these codes and experiment. Do some combination of the codes. Don't worry its harmless
You can change the timeout shutdown to 1 second or 5 seconds if you don't want to wait for a longer time.
I
don't use some of the codes stated above like -i, -m, and -d but
sometimes i use -f and -a. I use -a if i accidentally click the
shutdown shortcut.
To create a shortcut for shutdown, restart and log off on your desktop,
1. Right-click on the desktop then select New then click Shortcut.
The create shortcut wizard should appear.
2. In the text box asking for the location of the shortcut, type "Shutdown" (without the quotes) followed by the arguments or options just like stated above.
3. Click next then input the name of the shortcut in the text box and click finish.
You may change the icon of the shortcut you made.
Just rightclick on the shortcut icon and click properties. Click icon button and select the icon you want.
Enjoy...
- We Will Never Say Goodbye Lyrics
Composed by Rev. Fr. Raymond Estellore for the graduating students of St. Anthonyâs Academy SY 1996-1997 Looking back we find weâre at the endSomehow the days have gone... - 4 months ago
- Smart Spam Text
Okay so I complained about the spam text of some network provider in the Philippines last July. But in less than a month I received another message or text or SMS whatever you prefer to call it... - 4 months ago
- Good Table Manners
Never ask for any container/plastic bag or doggy bag and bring some leftover for your pets. It is inappropriate to ask for a doggy bag when you are a guest. Save the doggy bag for... - 5 months ago
- Inserting tables and adding clip arts in microsoft word
There are two ways to add a table to the document using the Insert feature: Click the Insert Table button on the standard toolbar. Drag the mouse along the grid, highlighting the... - 5 months ago
- Microsoft Word Basics
First we have to learn how to create a document. There are several ways to create new documents, open existing documents, and save documents in Word: Create a New Document Click the New ... - 5 months ago
PrintShare it! — Rate it: up down flag this hub









