1.

Solve : DOS command to Count files in a folder?

Answer»

Please help me with a DOS command to count the NUMBER of files in a FOLDER with name starting with 'xxx'. The folder contains hundreds of files and few of then will be of name 'xxx_01.txt', 'xxx_02.txt' 'xxx_03.txt' etc.There are several ways to do this, amongst them are:
1] dir xxx*.*
which will show the count of files at the end of the list of files
2] dir /b xxx*.*|find /c /i "xxx"
which just SHOWS the count
Graham
Thanks a lot Graham.
The second command is exactly what i NEEDED.



Discussion

No Comment Found