Hi All,
Can anyone help me on a Batch file code that would count a specific filename ?
I already know how to count number of files within a folder but i dont know how to incorporate it on a specific filename.
@echo off
for /f %%A in ('dir ^| find "File(s)"') do set cnt=%%A
Sample Filename EGRHI-Tenant1-01
0612
19.csv = 061219 is the date of the sales file (not the date of the day)
something like count all files
??-?
??-??06??19.csv
I need to count all files on a monthly basis for example how many files on 0619.
If theres a blank that would ask me what month and year the better.
Many thanks