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