Displays the current directory name or changes the current directory.
CHDIR [/d] [Drive:][path]
CHDIR [...]
CD [/d] [Drive:][path]
CD [...]
.. Specifies that you want to change to the parent directory.
Type CD drive: Displays the current directory in the specified drive.
Just type the CD without parameters, the current drive and directory are displayed.
Using the/d switch, in addition to changing the current directory of the drive,
You can also change the current drive.
If the command extension is enabled, the CHDIR will change as follows:
The current directory string is converted to use the case on the disk name. So
If this is the case on the disk, CD C:\TEMP sets the current directory to
C:\Temp.
The CHDIR command does not use spaces as delimiters, so it is possible to change the directory name to a
A subdirectory name with a space but no quotation marks. For example:
CD \winnt\profiles\username\programs\start Menu
The same as the following:
CD "\winnt\profiles\username\programs\start menu"
In the case of extended deactivation, you must type the above command.
Cd\ ' returns to the root directory
cd.. ' Go back to the previous level directory
Example:
Opening Welcome words
Microsoft Windows XP [version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
Ant installed successfully
C:\Documents and Settings\wzy>ant.bat
Buildfile:build.xml does not exist!
Build failed
Enter "Cd\" at the end of the directory
C:\Documents and settings\wzy>cd\
Directory is located in the root directory, and then enter "CD Android DVP"
C:\>CD Android DVP
The directory is positioned to the C:\android Dvp> after the carriage return, and continue to enter the CD ZXing-1.6
C:\android DVP>CD ZXing-1.6
The directory is positioned to the C:\android Dvp\zxing-1.6> after the carriage return, continuing to enter the CD core
C:\android DVP\ZXING-1.6>CD Core
After carriage return, the directory is positioned to C:\android dvp\zxing-1.6\core>
At this point, if you type "CD ..."
C:\android DVP\ZXING-1.6\CORE>CD.
After the carriage return, the table of contents is back one layer, then enter "cd\"
C:\>CD Android dvp\zxing-1.6>cd\
Return the directory back to the root directory again, then enter "CD Android Dvp\zxing-1.6\core"
C:\>CD Android Dvp\zxing-1.6\core
After carriage return, the directory is positioned once to the target location "C:\android dvp\zxing-1.6\core>"
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.