Under CMD file operations

The common file operation instruction CMD

1. Enter the letter such as C: and then enter, into the equivalent of the C drive (c generally into a desktop disk directory)

2. Type cd and then enter the directory name (directory name directory name is c disk, but also for the directory path c disk). That is as cd mm mm into the folder

(To open a file you do not need cd)

3. If you want to return to the upper directory, enter cd .. directly on the line, you can return to the parent directory. The development process most commonly used commands will these.

4.dir command to view a list of files in a directory, see all the files in that directory:

you / and *

5.attrib command, change file attributes, remove all files (folder) in the directory hidden attributes:

attrib -h * /s /d

6.copy command to copy files, copy all the files in the directory to the D drive:

* Copy "D:"
the xcopy folder copy command, the command format:
the xcopy / E / H / Y "path to the original folder" "current folder path"

7.PS: in cmd if the command does not know which command usage, then enter the command followed by one of / can view usage such as copy / can view the usage of the copy command ..?.?

Guess you like

Origin www.cnblogs.com/shaozheng/p/11566929.html