title: How to list files using dos commands?
body: <p>I need to list the names of the files and store it in as text file!</p>
  
  <p>What I did is, I used the following dos command</p>
  
  <pre><code> x:\xyz&gt; dir *.* &gt; files.txt
  </code></pre>
  
  <p>what this does is that, it stores the names of the files present in directory xyz as well as size, time and date of the files!</p>
  
  <p>How to get only the names of files?</p>