title: For loop and delims in batch files
body: <p>Can someone please help me understand command file syntax</p>
  
  <pre><code>IF "%INPUT_PATH%"=="" (
      echo Searching for latest test results in: %TEST_RESULTS%
      FOR /F "delims=" %%i in ('dir /O-D /B "%TEST_RESULTS%\*.trx"') DO (
          SET INPUT_PATH=%TEST_RESULTS%\%%~ni
          GOTO :DoneInputPath
  ) )
  </code></pre>
  
  <p>I get that it first checks if INPUT_PATH variable is empty and if it is empty then enters into an inner for loop, I am lost otherwise</p>
  
  <p>specifically</p>
  
  <ol>
  <li><code>FOR /F "delims=" %%i in ('dir /O-D /B "%TEST_RESULTS%\*.trx"')</code></li>
  <li><code>SET INPUT_PATH=%TEST_RESULTS%\%%~ni</code></li>
  </ol>