CD Command In DOS
Changes the current directorySYNTAX
- CD [drive:][path]
- CD[..]
EXAMPLES
cd
- – Changes current directory to the highest level of the current drive (the root directory).
cd ..
- – Goes up one directory. For example if you are within the
C:WINDOWSCOMMAND>
- directory this would take you to
C:WINDOWS>
cd windows
- – Changes to the
Windows
- subdirectory of the current directory (if it exists).
Note: If you want to change to a different drive, CD will not switch to it. CD only changes directories in the current drive. To change drives, type the drive letter followed by a colon. i.e. cd d: will not switch to the d drive, but d: will switch drives.