Skip to content

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 9009

Please check the following:

  1. Confirm xcopy.exe exists under "%SystemRoot%\System32". If not, copy it from another machine.
  2. Confirm the system PATH includes "%SystemRoot%\System32;%SystemRoot%;". If xcopy is configured correctly but the error persists, try moving the xcopy path to the front of PATH. A misspelled entry earlier in PATH can 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.