C++ CMD.EXE 以上述路径作为当前目录启动。不支持 UNC 路径。默认为 Windows 目录

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/23673632/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-28 00:31:13  来源:igfitidea点击:

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

c++windowscompiler-errorscmdparallels

提问by mwild

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

只是在 Visual Studios 上用 C++ 编码,当我运行程序时,它会执行然后输出它。

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?

我相信这可能是因为我在并行上运行 VS?这可能是为什么?如果是这样,有什么办法可以摆脱它?

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. 

回答by NirMH

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.

没有更多细节......看起来你已经从 UNC 路径打开了你的 sln 文件......这意味着从 VS 中运行时的执行应该使用 UNC 路径,但这是不允许的。