title: Batch script: Write date of oldest file in a dir to text file
body: <p>I am trying to write the modified date of the oldest file in a directory to a text file. At the moment i can write all the file names (i named them the date they were created but) in oldest to newest order but cant seem to limit this to just output the oldest or indeed get the modified or created date/time. My directory is remote in case it makes a diff and my current attempt is as follows:</p>
  
  <pre><code>dir "\\dirxxxx\xxxxxxx\xxxxx\xxxxx\xxxxx\*.*" /b /a-d /o-d`
  </code></pre>
  
  <p>Any ideas how i can get the creation or modified date of a file written to a text file in same dir?</p>