≡ Menu

Windows 7 command line switch drives

In command prompt we can switch from one drive to another drive by just typing the drive letter name suffixed with the character ‘:’

For example if you are working in C: drive and if you want to switch to E: drive just type ‘E:’ at command prompt and press ‘Enter‘.

Example:

C:\> E:
E:\>

If you want to switch and also move to some particular directory in the new drive then you can use ‘cd’ command with /D switch. For example to move to e:\dir1 from the above C: drive folder you need to run the below command.

cd /D E:\dir1

This will place you in E:\dir1 folder. Just doing cd without /D switch will not change the drive.

3 comments… add one
  • Vege

    thanks
    my problem solved!
    :)

  • King

    Every time I forget this simple thing…. After trying so many things such as (d:\>, d\\, d:>, d.., d\>,cd d>, etc) i finally get to know its as simple as d:
    Thanks a ton!!

  • chris

    my external drive appears as local drive and i can’t open it what should i do?

Leave a Comment