Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CMD.EXE was started with the above path as the current directory. UNC paths are not supported. Defaulting to Windows Directory [duplicate]

Just coding in C++ on visual studios and when i run the program it executes and then outputs this.

I believe it may be because i am running VS on parallels? Could this possibly be why? and if so, any way to get rid of it?

error message:

'\\psf\home\documents\visual studio 2010\Projects\Object_Oriented_Coursework\Object_Oriented_Coursework' 
CMD.EXE was started with the above path as the current directory. 
UNC paths are not supported. Defaulting to Windows Directory. 
like image 761
mwild Avatar asked May 15 '14 08:05

mwild


People also ask

How do I fix UNC path is not supported?

If you open a file with such a path, the program will crash when you try to import a glazing system. You can solve this problem by mapping a normal drive letter to the path that has the UNC path.

Does CMD support UNC paths?

CMD does not support UNC paths as current directories. The Pushd command automatically maps a drive and navigates to it. If you run the "net use" command after you run Pushd, you'll see a new drive mapping.

What does UNC path mean?

Universal naming convention (UNC) paths, which are used to access network resources, have the following format: A server or host name, which is prefaced by \\ . The server name can be a NetBIOS machine name or an IP/FQDN address (IPv4 as well as v6 are supported).

How do I find my UNC path?

TIP: To find the UNC path for a mapped drive, press the Windows key + R then type cmd and click OK then type net use and press enter. A list of your mapped drives appears, together with the relevant UNC paths.


1 Answers

without more details... it looks like you've opened your sln file from a UNC path... which means the execution when running from within VS should use the UNC path but it is not allowed.

Solution to be clear: Instead of accessing \share\folder\file.sln, create a drive Z: that maps \share\folder and then open Z:\file.sln

like image 81
NirMH Avatar answered Sep 21 '22 09:09

NirMH