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: \