Win7 shutdown command

Source: Internet
Author: User

Windows cmd uses the DOS command to access the command line interface. The DOS command is case-insensitive, so it is free. In addition, if you want to write a bat batch file, the Comment command uses "::". Www.2cto.com usage: shutdown [/I |/l |/s |/r |/g |/a |/p |/h |/e] [/f] [/m \ computer] [/t xxx] [/d [p | u:] xx: yy [/c "comment" comment shutdown.exe ...... the same is true. /L log out. This cannot be used with the/m or/d option. /S. /R shut down and restart the computer. /G shut down and restart the computer. After the system restarts, restart all registered applications. /A stop the system and shut down. This can only be used during the timeout period. /P shut down the local computer without timeout or warning. /H sleep the local computer. /T xxx sets the timeout before closing to xxx seconds. The valid range is 0-315360000 (10 years). The default value is 30. Example of how to use www.2cto.com: shut down the computer at. Enter "at Shutdown-s" in the Command window in cmd. Then, the "system Shutdown" dialog box appears, by default, there is a 30-second countdown and you are prompted to save your work. If you want to shut down the server by a time-based method, you can enter “shutdown.exe-s-t 7200 ", which indicates that the server will be shut down automatically after 120 minutes, and" 7200 "indicates 120 minutes. If you want to cancel the operation, enter "shutdown-a" in the running process ". In addition, enter "shutdown-I" to open the Set automatic shutdown dialog box and set the automatic shutdown. Instance: at shutdown-s-t 20 is to shut down the host at and countdown to 20 seconds. You must enable the "Task Scheduler" service before using it. Run the sleep command: at rundll32 powrprof. dll. If SetSuspendState is automatically sleep, run the following command in CMD: powercfg-h off. If you want to enable automatic sleep again, use powercfg-h on
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.