I am trying to count the number of .bin files in my folder that include a particular name pattern. I basically need to count how many such files I have for each name type.
For instance in my folder I have files like
and the response should be 3.
for /f %%i in ('dir /b /a-d %pattern% ^| find /c /v ""') do @call set count=%%i
but my code does not recognize "?" and doesn't replace it with numbers and I get 0 in response.
I would really appreciate it if you can give some help on this.