title: Using call <file.bat> results in "sleep is not recognized as an internal or external command.."
body: <p>I have a script that calls other commands in a for loop:</p>
  
  <pre><code>for %%x in (%CMDS::= %) do (
    call C:\%%x %1%
    echo "%%x complete"
  )
  </code></pre>
  
  <p>However, running this results the console spitting out :</p>
  
  <pre><code>'sleep' is not recognized as an internal or external command,
  operable program or batch file.
  </code></pre>
  
  <p>This is because the files i loop through and run have these commands in them. Why is it that if i run these files one by one they work, but when chained using <code>call</code> they don't? I can <code>sleep</code> in my terminal outside of this script..</p>
  
  <p>Regards</p>