Home OS Windows How to change Directory in CMD on Windows 10

How to change Directory in CMD on Windows 10

Windows Command Prompt is a good built-in software that lets you run applications utilizing the command-line possibility. Using the command, you may carry out plenty of issues immediately in your Windows laptop like troubleshooting and fixing sure sorts of difficult points, switching or altering listing, and extra.

As a Windows consumer, you need to should be properly accustomed to the fundamental instructions and utilization of the Command Prompt. In this information, we are going to present you learn how to change directories in Command Prompt on Windows 10.

How to vary Directory in CMD

If you wish to change the listing within the Command Prompt, you could have three choices:

  1. Use Dir and CD command to vary directories
  2. Use the Drag and Drop technique
  3. Using the Tab key.

1] Using DIR and CD instructions

To get began, open the Windows search utilizing Win+Q keyboard shortcut.

In the textual content space, sort cmd after which choose Command Prompt from the outcome checklist.

Once you open the command immediate, sort dir command to see the checklist of all subdirectories within the present folder.

In the above screenshot, you may see the checklist of all directories accessible in my folder named “digvi”.

Now suppose you wish to change the present listing with the Documents folder from the checklist.

To accomplish that, sort cd adopted by an area, sort Documents after which hit Enter-

cd Documents

If you assume you’re within the incorrect listing and wish to change the listing you then first want to maneuver a stage again.

To try this, sort the beneath instructions and hit Enter:

cd ..

After turning again, sort cd adopted by an area after which sort the brand new listing identify you wish to change.

cd house <listing identify>

Make positive to take away the brackets from the above command-line after which press the Enter key.

For reference, you may see the above picture, the place I’ve modified the Documents listing to Downloads listing.

Once you alter the listing identify, once more sort dir to see the contents of the listing.

Read: How to delete information and folders utilizing Command Prompt.

2] Using Drag and Drop

In case the folder you need to change is current in your laptop display, use the drag and drop technique to mirror the pathname of the folder.

Read: Ways to open Command Prompt in a folder.

3] Using the Tab key

Additionally, you should use the Tab key to sort the listing identify rapidly.

To do that, sort cd > house > the primary few letters listing identify, then hit the tab key.

Hope this helps!

Most Popular

Recent Comments