I have a daily log file that gets created in the format yymmdd.skd. I would like to scan all files in the folder that contain these skd files. The scan would check only files with the date of the current day or newer. So if today is 120416.skd, then it would check for files 120416.skd and 120417.skd, etc, but not older files than the current day.
The scan would check each file for the string ,,CM, (comma comma CM comma).
It needs to output the number of times it finds the string to a text file, just the total count. So the text file could say the following....
Found XX CM1 entries on schedule 120416.skd
If it does not find any entries of ,,CM, then it needs to make it obvious.
DID NOT FIND any CM1 entries on schedule 120416.skd.
Since it will be scanning multiple files each day, the text output would likely contain multiple file results.