If you ever get an exit code 9009 from xcopy like the one below, then try using the full path to xcopy. It should be there, it should not matter, but it does if someone changed your path.
[Exec Error] The command " xcopy ....\Shared\DLL\FastMM\FastMM_FullDebugMode.dll .\Win32\Debug\ /y&& xcopy ....\Shared\DLL\OpenSSL\libeay32.dll .\Win32\Debug\ /y&& xcopy ....\Shared\DLL\OpenSSL\ssleay32.dll .\Win32\Debug\ /y&& xcopy ....\Shared\DLL\gRPC\nghttp2.dll .\Win32\Debug\ /y&& xcopy ....\Shared\DLL\gRPC\sgcWebSockets.dll .\Win32\Debug\ /y" exited with code 9009.
Preliminary solution: replace xcopy
with C:\Windows\System32\xcopy.exe
.
Final solution: look with Process Explorer and Process Monitor what the exact environment PATH is. It should include C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;
If it does not, then find out what is changing your path.
Related:
- [WayBack] c# – Why does xcopy exit with code 9009 in Visual Studio post-build step? – Stack Overflow
- [WayBack] xcopy exited with code 9009 – TeamCity Support | JetBrains
- [WayBack] xcopy exit with code 9009 in Visual Studio post-build – ict.ken.be
–jeroen