CMD command
CMD Command |
shutdown Command |
shutdown-l logout shutdown-s shut down shutdown-r Restart shutdown-h Hibernate shutdown-a Cancel system shutdown shutdown-f Force a running program to close shutdown-t setting Countdown (in seconds) defaults to + usage: such as timed shutdown, shutdown-s-T 3600 after one hour (logoff-l and-T are used simultaneously,-T is not valid) Restart Shutdown-r for one minute after a timed reboot switch machine: @link Restart Computer command: Shutdown–r Fast restart: shutdown-r-T 0 the command to shut down directly is: Shutdown–s Fast shutdown: shutdown-s-T 0 |
CD Command |
C/d/e:enter Enter the specified disk path CD Path Enter the specified directory, path must be the current command disk CD.. is to return to the top level directory CD ... is to return to the upper parent directory CD \ is to return to the root directory CD Dir-name go to the next level dir list current path files |
Other |
CLS Clear Screen Calc Calculator |
Reference:
CMD command name Detail Daquan
Useful features
Windows Command Utility function |
F1. executing a CMD script |
S1. text Editor input cmd command; S2. modify the extension to. bat/.cmd, double-click Run; |
F2. add start-up app link |
S1.cmd; S2.gpedit.msc; S3. local Computer policy → user Configuration → administrative Templates → system → login, add boot start application; |
|
|
|
BAT Script
BAT |
CMD Implementation Delay Link |
Sleep xxx Create file Sleep.vbs: echo Wscript.Sleep > Sleep.vbs Sleep.vbs The contents are as follows: Wscript.Sleep 5000 |
|
|
|
|
Windows cmd Command notes