ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Using cd to Change Drive Letters on Windows

    IT Discussion
    windows windows administration command line
    2
    3
    942
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by

      Originally posted on my Windows Administration blog in 2013 here: http://web.archive.org/web/20130929034913/http://www.scottalanmiller.com/windows/2013/03/24/using-cd-to-change-drive-letters/

      When changing directories with the cd command we need know nothing about how it works. The command is so basic we think nothing about it. That is, until we need to change the drive in which we are working. Suddenly on most versions of Windows today the base cd command does not work.

      D:\>cd c:
      C:\Users\Administrator
      
      D:\>
      

      That wasn’t very useful. Instead we need to use the /d flag to tell the cd command that we want to change drive letters. If you are line the 😧 drive and want to switch to the 😄 drive, try this instead:

      D:\>cd /d c:
      
      1 Reply Last reply Reply Quote 2
      • coliverC
        coliver
        last edited by

        Can't you just type

        C:
        

        ?

        1 Reply Last reply Reply Quote 0
        • scottalanmillerS
          scottalanmiller
          last edited by

          Yeah, but this was explaining why cd does not work as expected.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post