title: MS DOS script to DIR first 10 files only, descending order
body: <p>I am using <code>dir abc*.*/o:-d/b &gt;&gt; "testfile1.txt"</code> to get the output in descending order. Is there a way to get only 5 / 10 files as output. Actually I want to store the latest 5 (sorted by Date Modified) files in testfile1.txt.</p>
  
  <p>Appreciate your response</p>