I am attempting to change directories to a file server such as:
cd \\someServer\\someStuff\
However, I get the following error:
CMD does not support UNC paths as current directories
What are my options to navigate to that directory?
|
feedback
|
|
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. | |||||||
feedback
|
|
You could use net use to map a network drive to a UNC path, then browse to the mapped drive. | |||||||||
feedback
|
|
As well as explicitly mapping a drive so that | |||
|
feedback
|
|
Slightly longer explanation of pushd here: http://shortfastcode.blogspot.com/2010/05/how-to-deal-with-cmd-does-not-support.html | |||
|
feedback
|
|
Wouldn't the junction command work here? | |||||||
feedback
|
|
Go to this page and search for "allow unc path"...will that work? | |||
|
feedback
|
|
Or you could switch your shell to PowerShell. It has complete support for UNC paths. | ||||
|
feedback
|