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

This question already has an answer here:

So basically I want to go to\myFolder to see the files in it. I go with Explorer and it works fine, I can even delete and/or modify and add files to it.

The problem is that I'm trying to go through: cd \\\myFolder and it returns: CMD is not compatible with the UNC access routes as an actual directory (I'm translating this, as the original message is in spanish).

Hope this question makes sense,

Thanks a lot!

share|improve this question

marked as duplicate by Ƭᴇcʜιᴇ007, Tog, Brad Patton, Scott, Nifle May 11 '13 at 7:26

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

What version of windows? – EBGreen May 10 '13 at 15:16
Windows 7 my friend (although the folder is in Server 2003) @EBGreen – villancikos May 10 '13 at 15:32
On W7 you would have Powershell where you could CD to the UNC path with no problem. – EBGreen May 10 '13 at 15:35
up vote 13 down vote accepted

Use pushd to create a virtual drive:

pushd \\UNC\path

And to unmap the virtual drive and return to your previous local path:

share|improve this answer
I gather that works, but even for Microsoft, it's bizarre... – Aaron Miller May 10 '13 at 15:25
I suppose it makes sense because you can't just simply traverse into it. It has to mount the location to the filesystem first, and pushd can do so temporarily, pretty easily. – Ben Richards May 10 '13 at 15:30
@BenRichards: Windows mounts disks and network shares as soon as they're accessed; assigning a drive letter is entirely optional. It's an artificial limitation in cmd.exe. – grawity May 10 '13 at 15:34
@grawity Good point. And I'd say "compatibility with DOS" to that, except they already ditched any decent DOS compatibility with Vista. So, I suppose it really is bizarre. – Ben Richards May 10 '13 at 16:52

You can mount a network share to a drive letter and use this mount point in the command prompt. Obviously, you can mount through the graphical user interface, but also through the command line using the net use command, e.g.:

net use D: \\\share && cd /D D:

Unmount using net use D: /DELETE. Consult net use /? for more flags, for instance if access to the share requires a password.

share|improve this answer

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