A drive letter (for example, cd c :) is shared when the application is used. Enter cd/? In command line cmd /? The following help information can be displayed:
Column 1: the root directory is the top layer of the tree structure of the drive directory. To return to the root directory, enter "cd \" in the command line and the result is as follows:
Example 2: If you want to return to the previous directory, enter cd at the current command prompt. For example:
Example 3: If you want to enter the directory at the next level, enter the cd directory name at the current command prompt. Enter cd "documents and setting" at the command prompt C: \>, for example:
Example 4: If you want to change the directory c: \ drivers and settings of the current drive, go to the default directory of drive d, and enter d: In the current command line. The result is as follows:
Example 5 if the drive letter cd is used, the current directory of the drive is displayed. Enter cd e in the current directory of drive C, for example:
Example 6: If you want to change the default directory on drive d to D: \ word on drive C, enter cd d: \ word on the command line, for example:
If you do not believe it, you can verify that the default directory of drive d has changed.
Example 7: if the current directory is C: \ Documents ents and Settings, switch to d: \ word, enter cd d: \ word in the command line, press enter, and then enter d: as shown in Figure
Example 8: In the previous example, enter d: \ word twice. Enter cd d: \ word twice for the first time. Enter d: Can you enter d in one step: what about the \ word directory? The answer is yes. For example, you only need to add the parameter/D, for example, cd/d: \ word. The execution result is as follows: Note: this parameter is valid at 2 k/xp/vista/win7 /.