MS-DOS and Windows command line chdir command
Chdir (change directory) is a command used to switch directories in MS-DOS.
Chdir is an internal command and is available in the following Microsoft operating systems.
- All Versions of MS-DOS
- Windows 95
- Windows 98
- Windows ME
- Windows NT
- Windows 2000
- Windows XP
- Windows Vista
- Windows 7
- Windows 8
- Windows 10
- Windows 11
CHDIR [drive:][path] CHDIR[..] CD [drive:][path] CD[..]
Typing chdir by itself displays the current directory.
Goes to the highest level, the root of the drive.
Goes back one directory. For example, if you are in the C:\Windows\COMMAND> directory, this would take you to C:\Windows> directory.
Windows 95, Windows 98 and later versions of Windows allow you to go back more than one directory if you specify three or more dots. For example, typing "chdir..." with three dots after the cd would take you back two directories.
If present, would take you to the Windows directory. Windows can be substituted with any other name.