So basically I want to go to 192.xxx.xxx.xxx\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 \\192.xxx.xxx.xxx\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!

  • What version of windows?
    – EBGreen
    Commented May 10, 2013 at 15:16
  • Windows 7 my friend (although the folder is in Server 2003) @EBGreen Commented May 10, 2013 at 15:32
  • 1
    On W7 you would have Powershell where you could CD to the UNC path with no problem.
    – EBGreen
    Commented May 10, 2013 at 15:35

2 Answers 2


Use pushd to create a virtual drive:

pushd \\UNC\path

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

  • I gather that works, but even for Microsoft, it's bizarre... Commented May 10, 2013 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. Commented May 10, 2013 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. Commented May 10, 2013 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. Commented May 10, 2013 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.

Not the answer you're looking for? Browse other questions tagged .