1. Start-> Run-> cmd
2. Enter a disk with a drive Code such as D:. Do not use the CD command to switch.
3. Go to the path of the CD folder under the root directory. For example, if you want to enter E:/program files/PHP
Enter E: Enter
Note: you cannot run cd e:/program files/PHP when you open cmd. You need to first enter the disk (if you run cd e:/program files/PHP when you open cmd, the directory will not be switched, but the last directory you want to enter will be entered when you enter the drive letter next time. For example, if you enter E:, you will directly enter E:/program files/PHP)
Enter cd "Program Files"/PHP press ENTER
Note: To view folders with spaces (such as Documents and Settings, program files, and other folders) under DOS, you can use the following two methods:
1. Enclose the folder with quotation marks.For example, C:/> Cd C:/"Documents and Settings"
The advantage is that all file names can be displayed.
2. Generally, the dossystem only supports file names in the 8.3 format. Therefore, when a folder with a long file name is in DOS, take the first six digits and add ~ And number 1.You can enter C:/> Cd C:/docume ~ 1. Go to the Documents and Settings folder. When the first six letters are intercepted and repeated, you can change 1 to 2.
3. Go to the directory CD ../
4. The files in the Directory and the Directory dir are displayed.
Reprinted from: http://blog.csdn.net/aidenliu/article/details/5390113