title: Can VBScript determine the most recently modified (or added) file in a particular folder?
body: <p>I have a script (or more accurately WILL have a script) that checks a folder and copies a file from this folder to a different location (will run once per day).  The fileName that I'd like to copy from, however, changes based on the date.</p>
  <p>Basically, instead of setting the &quot;strFilePath&quot; to &quot;C:\somePath\somePath2\myFile.txt&quot; I would like to simply take the most recently modified (or added - does this make a difference in terms of the script??) in the &quot;somePath2&quot; folder and copy it to the destination.</p>
  <p>Bonus (but not completely necessary) would be to check in the script if the file was modified/added in the last 24 hours and only copy it over in that case.</p>