One of our TeamCity projects has dependencies on network shared drive, so we add following environment variable as a build parameter:
env.PATH = %env.PATH%;\\path\to\their\libraries
However, the build failed with error: "The command "xcopy /f /i /y "......" exited with code 9009."
We then change the env.PATH = C:\Windows\System32;\\path\to\their\libraries, and the build works.
But we really don't think we should manually add C:\Windows\System32 to the env.PATH
Do you know what might cause this and how to fix it?