title: Run cmd command work but run from batch file doesn't
body: <p>I try to create script with for loop to move file to sub folder. 
  At the beginning, I work with <code>CMD</code> then I copy command to <code>.bat</code> file and run it.
  The result is nothing happens.
  Why the same command on <code>CMD</code> works but run from file not ?</p>
  
  <p>Here is my command.</p>
  
  <pre><code>@echo off
  setlocal enableDelayedExpansion 
  SET FOL=J:\test
  SET ENDNUM=2
  
  for /l %x in (1, 1, %ENDNUM%) do (
  md "%FOL%/0%x/subfolder"
  move /Y "%FOL%\0%x\*" "%FOL%\0%x\subfolder"
  )
  </code></pre>