You can create a shortcut to shutdown or reboot computer on your desktop is a easy by following in this step :
- Right click on the desktop --> New --> Shortcut
- For 'Type the location of the item', type -- > shutdown
- Click 'Next' --> 'Type a name for this shortcut', type --> Shutdown (depend on you), Click 'Finish'
- When you want Shutdown PC --> Double-clicking on shortcut it will shut down your PC
In 'Type the location of the item', you can add any combination of several switches to do extra duty, like this :
- shutdown -r -t 01 -c "Rebooting your PC"
Double-click 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. See Lists on below :
- -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 "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)
- -f (Forces any running applications to shut down)
- -r (Reboots the PC)
This is an Example :
- shutdown -s -t 03 -c "Shutdown PC"
(Shutdown PC with log off, delay 3 seconds, Displays a message "Shutdown PC")
- shutdown -r -t 03 -c "Reboot PC"
(Shutdown PC with reboot after, delay 3 seconds, Displays a message "Reboot PC")
Note : You can change Icon of shortcut by right click on shortcut --> Properties , tab 'shortcut' --> click 'Change Icon'
Tags:
No comments:
Post a Comment