Home computickets Doesn't change directory in cmd with cd command

Doesn’t change directory in cmd with cd command




The picture shows that I am trying to change the directory, I write cd and the directory, but the directory does not change. Who knows why

Answer 1, authority 100%

The thing is that by default the cd command works by changing the directory, not the drive.
Let’s say you are trying to switch from drive E: / to drive C: / , this is the change of drive.

To solve this problem, you should look into the documentation, at least by writing help cd and you will see there:

The / D parameter is used to simultaneously change
current drive and directory.

This is exactly what you need, the command will end up like this:

cd / D C: \

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions