Shut down Windows 8 by just pressing a key on your keyboard, pressing a button on your computer, or closing the lid on your laptop.
Using a shortcut
Since not everyone has a keyboard with programmable hot keys, I'll start with the shortcut method. In the article about integrating a Shut Down menu into the Desktop context menu, I showed you a table containing eight command lines that perform all the options typically associated with terminating an active session. For your convenience, these eight command lines are shown in Table A.Table A: Command lines that perform all the options typically associated with terminating an active session
Command
|
Command line
|
Restart | Shutdown -r -f -t 00 |
Shut Down | Shutdown -s -f -t 00 |
Hybrid Shut Down | Shutdown -s -f -t 00 -hybrid |
Sleep | Rundll32.exe powrprof.dll,SetSuspendState Sleep |
Hibernate | Shutdown -h |
Lock | Rundll32 User32.dll,LockWorkStation |
Sign Off | Shutdown -l |
Switch Users | Tsdiscon.exe |
No comments:
Post a Comment