windows 7 command line switch drives

by admin on July 2, 2010

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:\Documents and Settings>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.

{ 1 comment… read it below or add one }

Vege December 3, 2011 at 10:18 am

thanks
my problem solved! :)

Reply

Leave a Comment

Previous post:

Next post: