Format:
cd "<path>"
Example:
cd "C:\Program Files (x86)\Microsoft Office"
cd
is an abbreviation for chdir
and the two commands behave in the exact same way. For the sake of consistency, cd
will be used throughout this topic.
To navigate to the directory one level above the current directory, specify the system directory ..
.
cd ..
To navigate to a directory that is inside of the current directory, simply cd
to the folder name without typing the full path (wrapping the directory name in quotes if it contains spaces).
For example, to enter C:\Program Files (x86)\Microsoft Office
while in the C:\Program Files (x86)
directory, the following syntax may be used:
cd "Microsoft Office"
or
cd "C:\Program Files (x86)\Microsoft Office"