How to Change Directory in CMD on Windows PC


key Takeaways

  • To change the directory path in the command prompt add cd followed by a space and then type folder path with name.
  • You can copy folder path using file manager or manually type.
  • make sure there is no extra space and the syntax is accurate.

Here we will see how you can effectively able to change your directory in cmd ( command prompt ) using the methods given below,

It is extremely simple to change the directory in cmd  let see how,

1. Open the command prompt as administrator.

2. Type cd and then space

cd command in command prompt

3. you can drag and drop folder or paste folder location.

file location copy in file to paste in cmd

4. press enter to successfully change the directory.

directory location changed in cmd

You can enter cd/ to jump all the way to the root folder of your pc storage drive. you can enter c|s to clean all previous command lines.

Key Points to remember while changing directory in the command prompt 

Here are some key points to remember while using the command prompt either for changing the directory or just casually using it. Ignoring this point may lead to errors and malfunction in the command prompt,

1. correct any typing or spelling mistakes

Check that your entered syntax in the command prompt is accurate, and make sure there is no extra space or any other letter has been entered unintentionally.

double-check the file location and entered path in error appeared after pressing enter.

2. check directory exists

Check if your entered directory path and file exist before continuing in the command prompt. To check that open that file first in File Explorer and then copy the path file from there to eliminate any chance of spelling or space mismatch.

3. check for the hard drive partition location

Check you entered the right partition drive location for your file path in cmd. There are various partitions in pc like drive c,e, and d. 

4. make sure you have administrator access

while opening cmd on pc, we recommend opening it as administrative access to avoid any error and denial during working in cmd for file-related permission.

command prompt as admin access

if you do not have admin access then check how to change admin access in windows pc.

photo of abhishek tiwari who is founder and owner of abinfox

Abhishek Tiwari

With real time experience and a computer science degree, Abhishek possesses a profound understanding of windows 11/10 and everyday tech and its potential to solve problems. Learn More