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

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

本文关键字:路径 默认 UNC 目录 Windows 不支持 当前目录 EXE CMD 启动      更新时间:2023-10-16

只是在visual studio上用c++编码,当我运行程序时,它执行然后输出这个。

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

错误信息:

'\psfhomedocumentsvisual studio 2010ProjectsObject_Oriented_CourseworkObject_Oriented_Coursework' 
CMD.EXE was started with the above path as the current directory. 
UNC paths are not supported. Defaulting to Windows Directory. 

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

解决方案是明确的:而不是访问sharefolderfile.sln,创建一个驱动器Z:映射到share文件夹,然后打开Z:file.sln