1. Enter the drive letter such as C: And press enter, which is equivalent to drive C (drive C is generally in the desktop directory)
2. Enter the CD directory name and press enter (the directory name is the first-level directory name in drive C, or the directory path in drive C ). For example, CD mm is used to enter the MM folder.
(If you want to open a file, you do not need CD)
3. If you want to return to the upper-level directory, simply enter CD.... You can return to the upper-level directory. These are the most common commands in the development process.
4. Run the Dir command to view the file list in the directory and view all the files in the directory:
DIR/*
5. The attrib command is used to change the file attributes and remove the hidden attributes of all files (folders) in the directory:
Attrib-H */S/D
6. copy the file command to copy all the files in the directory to the D Disk:
Copy * "D :\"
Xcopy command for copying folders. Command Format:
Xcopy/e/h/y "original folder path" "current folder path"
7. PS: in cmd, if you do not know which command is used, add a/after the command /? You can view the usage, such as copy /? You can view the usage of the Copy command ..
Commands for common file operations in cmd