title: Windows batch: call more than one command in a FOR loop?
body: <p>Is it possible in Windows batch file to call more than one command in a <strong>single</strong> <code>FOR</code> loop? Let's say for example I want to print the file name and after delete it:</p>
  
  <pre><code>@ECHO OFF
  FOR /r %%X IN (*.txt) DO (ECHO %%X DEL %%X)
  REM the line above is invalid syntax.
  </code></pre>
  
  <p>I know in this case I could solve it by doing two distinct FOR loops: one for showing the name and one for deleting the file, but is it possible to do it in one loop only?</p>