When using the command prompt to navigate in the windows systems. Ether on laptops, desktops or on servers, it’s very convenient to list the folders and to navigate inside the folder structure. Indeed, with one command MS-DOS allows to change folder or drive.
How to change the current directory in MS-DOS with the cd command?
Indeed, to use the cd command line, use this example and adjust it to your needs.
To change the current directory to move up:
In order to change the drive, for example, if the curent drive is C:, to move to D:
To move the current position to a specific folder, use the full directory path or the relative path.
- The full directory path (or absolute path) is the path from the drive letter, for example “C:\Folder\SubFolder”
- The relative path the one depending to your current position. For example, if the current position is C:\Folder, then the relative path to the child is simply “.\SubFolder”
If you are currently in C:\Folder and you need to access the sub folder, two options are available.
The first one using the relative path, usable only from the subfolder parent, i.e. Folder:
The second one using the absolute path, executable from any folder on the windows system:
To go to the cmd root directory for a specific drive:
The post explains how to move inside the windows folder system using the cd command line.