Can you help me please, I would like to create batch for count number of file start with key word "MM_" in this path.
D:\>dir /o | find "MM_"
27/06/2017 01:14 PM 1,592 MM_170613.csv
27/06/2017 01:14 PM 1,376 MM_170614.csv
27/06/2017 01:13 PM 2,223 MM_170615.csv
27/06/2017 01:12 PM 2,241 MM_170616.csv
27/06/2017 01:11 PM 2,497 MM_170617.csv
I have use command as Stephan provide as follow detail
@ECHO OFF
C:
cd "C:\MyDir"
set cntAAA = dir /b *MM_*|find /c /v ""
echo %cntAAA%
Result is show
0
echo off
Somebody can help?