How do you handle "CMD does not support UNC paths as current directories"?
Solution 1:
If you're considering scripting it, it's always helpful to learn about the pushd
and popd
commands. Sometimes you can't be sure what drives letters are already used on the machine that the script will run on and you simply need to take the next available drive letter. Since net use
will require you to specify the drive, you can simply use pushd \\server\folder
and then popd
when you're finished.
Solution 2:
Or you could switch your shell to PowerShell. It has complete support for UNC paths.
Solution 3:
You could use net use
to map a network drive to a UNC path and then browse to the mapped drive.