Need to navigate to a folder in command prompt

488,963

Solution 1

Navigate to the folder in Windows Explorer, highlight the complete folder path in the top pane and type "cmd" - voila!

Solution 2

I prefer to use

pushd d:\windows\movie

because it requires no switches yet the working directory will change to the correct drive and path in one step.

Added plus:

  • also works with UNC paths if an unused drive letter is available for automatic drive mapping,
  • easy to go back to the previous working directory: just enter popd.

Solution 3

In MS-DOS COMMAND.COM shell, you have to use:

d:

cd \windows\movie

If by chance you actually meant "Windows command prompt" (which is not MS-DOS and not DOS at all), then you can use cd /d d:\windows\movie.

Solution 4

Just use the change directory (cd) command.

cd d:\windows\movie

Solution 5

To access another drive, type the drive's letter, followed by ":".

D:

Then enter:

cd d:\windows\movie
Share:
488,963

Related videos on Youtube

the_dopamine
Author by

the_dopamine

Updated on May 03, 2020

Comments

  • the_dopamine
    the_dopamine almost 4 years

    My command prompt starts in C:\Users\ (Name) and I need it to be in a different folder, how can I do this using the command prompt itself?

  • the_dopamine
    the_dopamine about 13 years
    it doesnot work !! telling as syntax incorrect
  • catastrophic-failure
    catastrophic-failure over 7 years
    Is the `d:` in the second entry necessary though?