CMD command to enter a directory

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.