How can I navigate in command prompt to a remote folder which has been shared among users? [duplicate]

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!


Use pushd to create a virtual drive:

pushd \\UNC\path

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

popd

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: \\192.168.1.1\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.