title: Batch file to list all files in a dir in windows 7
body: <p>I'm trying to list all the files in a directory and then write that to a text file using a batch file. I think it should be something like</p>
  
  <pre><code>dir / (some flags here) &gt;&gt; files.txt
  </code></pre>
  
  <p>which will contain a listing like</p>
  
  <pre><code>a.exe
  b.exe
  c.exe
  </code></pre>
  
  <p>etc. etc</p>