`cd` doesn't change directory in Windows 7 [duplicate]

Solution 1:

You have to use just d: , not cd d:\

EDIT: it is also possible to use cd /d d: to change drives using cd

Solution 2:

Windows tracks a separate working directory for each drive. You are currently on the 'C' drive in the working directory '\'. When you type cd d:\ it changes your working directory for the 'D' drive to '\' and has no effect on your C drive working directory. To change drives, just type D:. You can change both at the same time with the /d parameter to cd.

Solution 3:

It should be noted that pushd (e.g. pushd D:\) will always change drives.