Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using Expandrive 3 to map a remote drive to the Z:\ drive on my computer. I would like to view it using the command line from Windows 7, but trying cd Z:\ doesn't do anything. No error message, nothing.

Does anyone know if there's a way to view a drive other than C:\ using the command line in Windows?

share|improve this question
Your question doesn't make sense. What is a mapped drive to a remote drive? Do you mean a mapped drive to a remote Share? Have you tried simply running CD Z:? How about running net use? Do you see the Z: drive? – joeqwerty Jun 16 '14 at 14:46
I can see the remote drive. running CD Z: outputs the text "Z:\" and that's it. – avorum Jun 16 '14 at 14:47
have you typed 'dir'? – Frank Thomas Jun 16 '14 at 14:49
well, like i said, the CD command didn't do anything. If I run 'dir' after trying to CD it still returns the contents of my home folder. – avorum Jun 16 '14 at 14:51
type z: without the backslash and hit enter – Frank Thomas Jun 16 '14 at 14:52
up vote 4 down vote accepted

This is not specific to network shared drives. This is the normal behavior of cd command under windows. You should read the contents of the help notes provided with cd command. A quote from cd help notes:

Use the /D switch to change current drive in addition to changing current directory for a drive.

The syntax you want is

CD [/D] [drive:][path]

This will allow you to cd to a different drive. If /D switch is not used, you can only change the directory within your current drive.

Another alternative is to explicitly change the drive before issuing cd command. in your case this would look like this


CD [path]

First line will change the drive to whatever drive you want, use Z: in your case (note no backslash after column), second line will change directory to [path]

share|improve this answer

When cd'ing to a drive, older versions of cmd.exe do not go straight there. after issuing your CD command, type the drive letter : but without a backslash. The reason is because CD is only for changing directories, not drives, and they technically have differant syntax. you don't actually need to CD at all to just switch drives

    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

    C:\Users\user>cd d:\



share|improve this answer

The cd command (without /D switch) cannot change current working directory to another drive. For that use X: command (where X is a drive to change to).

The cd X:\path does not do nothing though. It changes current directory on X: drive to path. So if you do cd X:\path followed by X: you end up in X:\path. Every drive in Windows remembers its working directory. The X: command does not change to a root directory of the drive, but to a working directory on the drive (root being default).

share|improve this answer

Yes, the /D swtich for CD will change the drive and then change the current working directory.

This works with both drive letters assigned to local drives and also to network drive letters mapped to network UNC shares or remote storage servers via programs like ExpanDrive or WebDrive.

More information on the MSDOS CD command can be found at

share|improve this answer
Would be helpful to have the relevant information from the external link. – Ramhound Apr 3 '15 at 1:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.