title: list with all dirs + date of file with oldest last modified date
body: <p>been doing research all day and I probably could have done this manually but I just want to learn how to do it to expand my knowledge</p>
  
  <p>REQUIREMENTS:
  I have a folder with 11xxx subfolders, I need to know when the oldest file within each of these subfolders was last modified</p>
  
  <p>so far I tried to use the dir command to get a list of all folders and the last modified date of each of the files within a folder</p>
  
  <pre><code>echo Starting...
  @echo off
  if exist files.txt (del files.txt)
  dir /on /s /tw /a-d | find /v "&lt;DIR&gt;          ." | find /v "File(s)" &gt; files.txt
  if exist files1.txt (del files1.txt)
  For /F "delims=" %%A in (files.txt) Do Echo %%A &gt;&gt; files1.txt
  if exist files2.txt (del files2.txt)
  For /F "skip=2 delims=*" %%A in (files1.txt) Do Echo %%A &gt;&gt; files2.txt
  @echo on
  echo Finishing...
  del files.txt
  del files1.txt
  ren files2.txt files.txt
  quit
  </code></pre>
  
  <p>ok so the above gave me a txt file in this format</p>
  
  <pre><code> Directory of C:\TEMP  
  2013/12/05  05:30 PM            22,528 6N85.mst  
  2011/06/21  12:01 PM        14,108,096 CitrixOnlinePluginWeb.exe  
  2014/02/19  01:59 PM               448 extract.cmd  
  2014/02/19  03:42 PM                 0 files.txt  
  2011/08/04  08:41 AM               216 GLF1C8.tmp  
  2011/08/04  08:41 AM             2,630 GLF1C9.tmp  
  2011/08/04  08:41 AM                54 GLF1CA.tmp  
  2011/08/04  08:41 AM                64 GLF1CB.tmp  
  2011/07/05  12:29 PM           239,174 ITMURebootMSG.EXE  
  2013/11/28  04:20 PM         2,434,048 msxml.msi  
  2013/11/28  12:59 PM         2,066,376 msxml4-KB2758694-enu.exe  
  2004/04/15  10:10 AM                79 process.bat  
  2012/08/02  12:43 AM             4,594 process.log  
  2003/11/04  10:17 AM               376 procs.vbs  
  2014/02/18  03:32 AM            16,391 WakeUpAgt.LO_  
  2014/02/19  12:04 PM             9,247 WakeUpAgt.LOG  
  2005/03/09  09:40 AM         4,630,256 WindowsXP-KB895200-x86-ENU.exe  
  2005/10/12  02:06 PM         4,934,896 WINDOWSXP-KB902400-X86-ENU.exe  
  2006/05/25  12:12 PM         1,307,376 WindowsXP-KB913580-x86-ENU.exe  
       Total Files Listed:  
                 0 Dir(s)  81,741,336,576 bytes free  
  </code></pre>
  
  <p>I opened the txt file within excel to get the first 10 chars of each line to get the date in col A,</p>
  
  <p>IMO this approach is wrong, maybe I should be doing it in a different way, anyone care to help?</p>