title: Suppress directory names being listed with DIR
body: <p>I want to list the files in a folder but not sub-folders. <code>DIR</code> enables you to list specific types of files (hidden, archive ready etc) and also only folders but I cannot see how to list only files.</p>
  
  <p>I need the following statement to return files for further processing, but folder names are messing things up!</p>
  
  <pre><code>for /f %%a in ('dir /b %csvPath%') do (
  )
  </code></pre>