CD commands under Windows

Source: Internet
Author: User

Http://blog.sina.com.cn/s/blog_5e971b850100rtta.html

First understand what the drive is, and what is the disk character.

A drive is a storage area formatted with a system with a drive letter that enables hard disks, floppy disks, CDs, and USB drives.

Drive letter is hard disk, floppy disk, CD-ROM, USB stick on the computer to display the disc symbol, such as in My computer has c:d: Wait for the letter, this according to your computer partition situation command.

CDs can also be written as chdir (change directory, changing directories) to display the current directory name and change the current directory name

If there is a Joan file under the E disk, the Joansky file is also available under the Joan file. When CMD is turned on, the default current drive directory is the system current user home directory, my directory is C:\Documents and settings\joan>

The default current directory for each drive is the root directory, and once the directory of the drive changes, the changed directory will default to the current directory of the drive. Drive directory changes only work for this CMD operation, after turning off cmd, the drive default current directory is still the root directory.

CD [drive:] [path] changes the current directory of the Drives

CD E:\joan\joansky This makes the current directory of the E-disk Joan\joansky, but the current drive is still the C disk.

[Drive:] Change current driver

E: At this time the current drive disk is the E disk, the current directory depends on the default directory of the drive.

such as CD e:\joan\joansky[carriage return] e: These two commands make the current directory e:\joan\joansky>

CD [/d] [drive:] [path] changes the current driver

CD/D E:\joan\joansky at this time the current drive is the e disk, and the current directory of e disk is Joan\joansky

The function of this command is equivalent to CD E:\joan\joansky [carriage return] e:

CD [\] back to the root directory of the current drive

CD \ Current directory is c:\>

CD [..] Return to previous level command

CD: At this time the current directory is C:\Documents and Settings>, and this has already \documents and Settings\ default to the current directory of C drive

The current drive is its root directory, and you can use a relative path when you want to enter the directory of its drive

If the current directory is E:\>, then you can enter the CD \joan\joansky directly into the e:\joan\joansky>

PS: The current drive is not under its root directory, such a command is wrong. At this point you need to use the absolute path i.e. CD E:\joan\joansky

CD commands under Windows

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.