I have filenames like this:
M0654871_07_05_2011.pdf
M0654871_07_15_2011.pdf
Where 07_05_2011 is the date (MM_DD_YYYY) and the first number after M is just a "random" number.
I am writing a .bat file that loops over all the files in that directory. I want the script to count files on each day (based on the filename, not date modified).
It doesn't seem like there is any regex in batch scripting. Is there a way to accomplish this in Windows .bat scripting without downloading more tools/software?
(I could probably do a hard loop of checking the string against every single filename string for each day, but that is a bit much considering there are 10k+ files).
I found findstr can do regex in a way, but is there a way to use it to loop over the files and pull out number of files per date, instead of looping over dates and pulling out number of files?