Listing and opening files with filename selection filter
Posted: 12 Nov 2012 20:40
Folks,
In a particular folder, I have a collection of files with dates as prefixes in the filenames. E.g.:
20121024 - file1.txt
20121028 - file2.jpg
20121112 - file3.docx
20121114 - file4.txt
20121127 - file5.xlsx
I would like to open only those files that have as prefix a date that is today or before. For instance, in the above set, I would like my batch file to launch the first three files and ignore the other two.
How would I write a script to do this?
Thank you very much,
-Roger
In a particular folder, I have a collection of files with dates as prefixes in the filenames. E.g.:
20121024 - file1.txt
20121028 - file2.jpg
20121112 - file3.docx
20121114 - file4.txt
20121127 - file5.xlsx
I would like to open only those files that have as prefix a date that is today or before. For instance, in the above set, I would like my batch file to launch the first three files and ignore the other two.
How would I write a script to do this?
Thank you very much,
-Roger