Counting total files in a folder including subdirs
Posted on 2014-02-27
I was working on a batch script to count all the files inside a folder. The folder includes two level of sub directories. Only the lowest subdirectory contains files of different formats - csv, pdf, txt, doc, docx.
So, Alphabets has 27 subfolders A-Z and Number. Under A, I will have a level of subdirs like Apple, Apollo. Under each of these subdirs there will be the files. I need to count all such files.
A B C - Z number
Apple Apollo 1
a1.pdf a2.pdf a3.pdf 3muskateer.pdf
So total file count is 4.