How to use CMD command to enter a certain directory

When starting to use the cmd command to learn java, the cmd command line is often used to compile java, and the directory jump problem is used at the beginning, so I leave notes after learning.

1. Start -> Enter cmd>CMD in the search bar

2. Enter a certain disk, directly drive letter code: such as D:, do not need to switch with CD command

3. Enter the folder cd folder path except the root directory. For example, if I want to enter E:/Program Files/PHP, just

Type E: Enter

  [Note:  You cannot  run CD E:/Program Files/PHP when CMD is opened, you need to enter the disk first (if you run CD E:/Program Files/PHP when CMD is opened, the directory will not be switched, but the next time When entering the drive letter, enter the directory you want to enter last time, such as entering E: will directly enter E:/Program Files/PHP)]

Type CD "Program Files"/PHP Enter

  [ Note: If you need to view folders with spaces (such as Documents and settings, Program files, etc.) under dos, you can have the following two processing methods:

1. Add quotation marks to the folder.  The advantage of such as C:/>cd c:/"documents and settings"
is that all file names can be displayed.

2. In general, DOS system only supports file names in 8.3 format, so when encountering a folder with a long file name under DOS, take the first 6 digits, and then add a ~ sign and the number 1 at the back.  You can enter C:/>cd c:/docume~1 to enter the Documents and settings folder. When there is a repetition after truncating the first 6 letters, you can change 1 to 2, and so on.

3. Go to the previous directory CD ../

4. Display the files in the directory and the directory dir 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324769532&siteId=291194637