Batch file error: "xcopy is not recognized as an internal or external command ..."
I am programming a batch file and after a lot of code I have:
:d1copy
xcopy /Y "C:\Users\Joseph\Desktop\JOKO_Sync\*.*" "F:\JOKO_Sync\*.*" /s /e /V /D
pause
When I execute this I get the error
xcopy is not recognized as an internal or external command, operating program, or batch file.
However, I copy and paste this same code into another batch file and it works fine.
Any ideas?
+3
source to share