Displays or changes the current folder.
2000, 2005 (N), 2005 (I), 2008 (N), 2008 (I),2008r2(N), 2008r2(I), Azure
(N)=Native
(I)=Integrated
cd
cd <path>
cd ..
<path> | Specifies the folder to which you want to change |
[..] | Specifies you want to change to the parent folder |
[/?] | Displays help at the command prompt |
•Changing to the root folder
The root folder is the top of the folder hierarchy . To return to the root folder type
cd \
•Changing the default directory
To change the directory from the one you are on, type one of the following:
cd [directory]
•To verify the change to the directory, type the following:(this shows the current directory
cd
•To go back to the parent directory use ..
cd ..
Absolute folder changes start with \
To change your current directory to a directory named Reports, type one of the following commands:
cd \reports
To change your current directory to a subdirectory \Specials\reports, type:
cd \specials\reports
relative folder changes do not start with \
If your current directory is \Specials, type the following command to change to the \Specials\Sponsors subdirectory:
cd sponsors
To change from a subdirectory to its parent directory, type:
cd ..
To display the name of the current directory, use cd without a parameter. For example, if your current directory is \Public\aUser , type CD the following appears
B:\Public\aUser
For example if the current folder was Fldr1 and you wanted to change the current folder to Fldr2, there are several ways to do this
Root |
|-----Fldr1 |
|-----Fldr2 |
example to change the current folder to Fldr2... from Fldr1
cd \Fldr2
or
cd ..\fldr2
or
cd ..
cd fldr2
MD | Make folder |
RD | Remove folder |
REN | Rename folder |