Cd Command Not Working. Can't Change Directory in Windows 10 [Duplicate]

I was using the cd command to switch my drive to E: which basically contains all my junk files which I use for experimentation but the problem was cd was not working. The command I used was

cd E:  
ren *.* *.bat

However the time I ran this batch file (typed in notepad saved with a .bat extension) it didn't work out the cd command and ended up renaming all my desktop. When I tries using it in the command windows the result is

cd E:
E:\

then nothing what should I do.

0

In order to change to a different drive you either have to add the /D parameter to cd or type the drive on a line by it's own.

cd /D E:\

Or

E:
James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest