command line dos statement

Command line Dos statement

1. Switch drive letter

C:\>D:

have to:

D:\>

2. View all files in the current directory

C:\>dir

have to:
insert image description here

3. Directory jump

(1) Jump across drive letters

cd(change directory)

C:\>cd /d F:	//若发生磁盘间跳转,必须写“/d”

have to:

F:\>

Non-cross-drive jumps only need to write:

F:\>cd F:\visio

to jump to

F:\visio>
  • The slash "/" from the lower left to the upper right is called a forward slash, which means division, integer division (in integer operations), and "or"
  • The upper left-lower right "\" is called a backslash, which is generally used to separate directories or express escape in programming languages ​​(\+ characters become keywords)insert image description here

(2) Return to the parent directory

F:\visio>cd ..

have to:

F:\>

4. Qingping

F:\>cls		//clear screen

5. Exit

F:\>exit

Exit the command line window

6. Open the calculator

F:\>calc

open paint

F:\>mspaint

Create and open Notepad

F:\>notepad

7. Right click = paste, Ctrl+C, Ctrl+V are invalid

8. Create a new directory (create a new folder in the current directory)

md(make directory)

C:\User\Dell\Desktop>md newFolder

create a new file

cd(create document)

C:\User\Dell\Desktop\newFolder>cd>a.txt

Delete Files

C:\User\Dell\Desktop\newFolder>del a.txt

remove directory (delete folder)

rd(remove directory)

C:\User\Dell\Desktop>rd newFolder

9.ping

F:\>ping www.baidu.com
F:\>ping //ipv4码

Guess you like

Origin blog.csdn.net/War_wick/article/details/125866627