FAQ
How do I fix the xcopy exited with code 9009 error when building demos in Visual Studio?
When building demos in Visual Studio, if you see xcopy exited with code 9009 like this:
sh
xcopy ..\..\..\..\..\..\lib\conversionsdk\_sn.txt ..\..\..\ /y > null
xcopy ..\..\..\..\..\..\lib\conversionsdk\_key.txt ..\..\..\ /y > null
xcopy ..\..\..\..\..\..\lib\$(PlatformName)\_vc10\fpdfconversionsdk\_win32.dll..\..\..\ /y > null
xcopy ..\..\..\..\..\..\lib\$(PlatformName)\_vc10\fpdfconversionsdk\_win64.dll..\..\..\ /y > null' exited with code 9009Please check the following:
- Confirm xcopy.exe exists under
"%SystemRoot%\System32". If not, copy it from another machine. - Confirm the system
PATHincludes"%SystemRoot%\System32;%SystemRoot%;". Ifxcopyis configured correctly but the error persists, try moving thexcopypath to the front ofPATH. A misspelled entry earlier inPATHcan invalidate later entries—verify carefully.
After checking, run xcopy from a command prompt. If the system recognizes it, close Visual Studio and rebuild the demo; the error should be resolved.