Did you know that in Windows XP you can shut down your computer by clicking your mouse only once.
All you need to do is... right-click on Desktop -> select New -> Shortcut -> type "shutdown" followed by a space, and then enter one or more of the parameters listed below -> click Next -> type a suggestive name for your new shortcut -> finally, click Finish.
This is the Shutdown.exe (located in %systemroot%\System32, usually C:\Windows\System32) syntax:
shutdown [-i-l-s-r-a] [-f] [-m "//Computer name"] [-t xx] [-c "Text"]
Valid command line switches:
-a = Abort system shutdown in . ALL switches except -l and -m are ignored during abort.
-c "Text" = Text comment (case insensitive) to be displayed in the Message area of the System Shutdown window. MUST be enclosed between quotes. Maximum allowed 127 ASCII characters.
-f = Force running applications to close without warning.
-i = Display the shutdown interface (GUI). MUST be the first option!
-l = Log off the current user of the local computer (default action). Can NOT be used with the -m option unless the current user has Sysadmin rights, in which case the -m switch takes precedence.
-m file://computername/ = Remote/network computer name (most always case sensitive) to log off/restart/shut down. Current user MUST have Sysadmin rights to be allowed to use this switch!
-s = Shut down the local computer.
-r = Shut down and restart (reboot) the local computer.
-t xx = Set shutdown timer to timeout for xx seconds. IF NOT specified defaults to 20 seconds. Allowed values between 0 and 99 seconds. The -a switch is the ONLY one that CAN be used during the timeout period.
For example:
shutdown -s -c "Shutting down!" -t 3
tells your computer to shutdown after waiting for 3 seconds while the System Shutdown window will display text above in the Message area.
[After you're done creating shortcut for shutdown -> right-click on it -> select Properties -> enter desired shortcut key "combo" in the Shortcut Key box (e.g. Ctrl + Alt + End) -> click OK.
From now on just left-click on your shutdown shortcut or hit that key combination to turn off/restart/log off your computer.
(----Prashant----)
 
 
No comments:
Post a Comment