title: How to get get name of the most recent (by creation time) directory in a Windows script?
body: <p>I need some help in getting the name of the most recent directory in a Windows script.</p>
  <p>I have found some information on getting the most recent file which works but I cannot get this to work on directories.</p>
  <p>For example, here is my directory:</p>
  <pre><code>drwxr-xr-x 2 usrpm Domain Users 0 Jun 29 10:34 _200903_V20
  drwxr-xr-x 2 usrpm Domain Users 0 Jun 29 10:35 _200904_V21
  drwxr-xr-x 2 usrpm Domain Users 0 Jun 29 10:36 _200905_V22
  drwxr-xr-x 2 usrpm Domain Users 0 Jun 29 10:38 _200906_V23
  </code></pre>
  <p>I need my script to return me the most recent directory (V23).  I will then cd into that directory and copy a file out of it.</p>