From: Baoji IT Technology Network
http://www.sunenze.com/enzebbs/dispbbs.asp?boardID=4&ID=36&page=2
1. Directory Overview and Classification
In the DOS operating system, directories are indexes for storing files, facilitating the more convenient search for the required files or commands. Directories can be classified into the following types:
Root Directory: For a hard disk, it can have one, two, three, or even more partitions, but each partition has exactly one root directory, namely "\". For example, C:\ and D:\ represent the root directory of drive C and the root directory of drive D respectively.
Note: Many subdirectories can be created under the root directory, and we can still create the next - level directory under these subdirectories. The backslash "\" is still used to represent the relationship between subdirectories and the root directory.
Current Directory: The so - called current directory is the directory in which we are currently working. We can use the CD command to check the current working directory.
2. Path Overview and Classification
Path: A route from a directory to a directory or from a directory to a file. It is classified into the following types:
Absolute Path: A route from the root directory to a file.
For example: d: \abc\bdc\x.txt is a route from the root directory of drive D to the x.txt file.
Relative Path: A route from the current directory to a file or a directory.
For example: C:\XYZ>DIR d: \abc\bdc\x.txt means to view the d: \abc\bdc\x.txt file in the C:\XYZ directory.
3. Directory Operation Commands
MD - Create Directory Format: MD path + directory name
CD - Enter Directory Format: CD path + directory name
CD.. - Exit one level of directory
CD\ - Return to the root directory
RD\ - Delete an empty directory