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

1

22

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. 
Uptotheminute answered 15/5, 2014 at 8:59 Comment(2)
support.microsoft.com/kb/156276 Is your code being stored on a network drive?Booboo
I get the same from a VS 2022 project with custom (cmd.exe) build steps when I clone from git under WSL.Howenstein
J
24

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

Jihad answered 15/5, 2014 at 10:3 Comment(4)
my answer is valid. map a network drive to your path and use itJihad
how do i got about doing that? sorry for seeming oblivious to simple things :)Uptotheminute
no worries i think i have solved it, i had it mapped to the Z: drive but was opening it locally. Thanks for your helpUptotheminute
Solution to be clear: Instead of accessing \\share\folder\file.sln, create a drive Z: that maps \\share\folder and then open Z:\file.slnDaniels

© 2022 - 2024 — McMap. All rights reserved.