Windows cmd Command notes

Source: Internet
Author: User
Tags clear screen

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

Related Article

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.