Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

mw4

Getting the "oldest" file

Using automation, what would the wildcard or other way to get the oldest file from a directory list like this:

FAIR_INVOC.2014_07_10_0132.TXT.PGP
FAIR_INVOC.2014_07_10_0145.TXT.PGP
FAIR_INVOC.2014_07_10_0156.TXT.PGP
FAIR_INVOC.2014_07_10_0159.TXT.PGP

Obviously date and time are listed within the filename as YYYY_MM_DD_HHMM, but logically it would be the oldest file time stamp as well.

I just want the cleanest/easiest way to get just the ONE oldest file (could be one file in the directory or 10 with FAIR_INVOC), which in this case would be FAIR_INVOC.2014_07_10_0132.TXT.PGP.

Thanks!