title: Batch file error: "xcopy is not recognized as an internal or external command..."
body: <p>I'm programming a batch file and after a long amount of code, I have:</p>
  
  <pre><code>:d1copy
  xcopy /Y "C:\Users\Joseph\Desktop\JOKO_Sync\*.*" "F:\JOKO_Sync\*.*" /s /e /V /D
  pause
  </code></pre>
  
  <p>When I execute this, I get the error</p>
  
  <p><strong>xcopy is not recognized as an internal or external command, operable program or batch file.</strong></p>
  
  <p>Yet I copy and paste this same code into another batch file, and it works perfectly.</p>
  
  <p>Any ideas?</p>