Wednesday 24 August 2011

How to change current driver in windows command window?

In windows OS, you might need to use command window to run some DOS commands to speed up your efficiency.


The basic command is to change directory under which you are working. If you have several drivers in your machine, say, D:, E:, etc, other than System driver (C:), it might not work when you only run "cd E:\paths"


You should run "cd /D E:\paths" which can change the current driver in addition to changing the folder.

3 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. With Windows Powershell, using 'cd E:\paths' works just fine.

    ReplyDelete
    Replies
    1. Hi Jonas,

      Thanks for your post.Yep, you are right, it just works fine on Windows Powershell. I have not tested this tool when I posted.

      Delete