Search code examples
cmdcommand-promptworking-directory

Cant change directory in CMD, but Powershell works fine


I have tried

cd E:
cd "E:\android\webrtc_tutorial"
cd ..

However, i noticed that cd .. will successfully go up a directory. But I still cant change it to E drive. or the desired directory. (see pic2)

enter image description here pic 2


Solution

  • That's a common weird thing with cmd. to change drive, just write the drive path and ':' to cd into it. for example. to cd into E drive, write in the cmd:

    E:
    

    and then press enter.