|Hi. I have about 1000 subfolders in c:\images. |
I am looking for a batch or .vbs file that will
count the files in each sub folder. Hopefully
something I can out put to a text file to copy
into Excel and do what I gotta do.
I have tried:
dir c:\images /b /s | find /c /v "::"
but it just gives me a grand total of all files. I
dir c:\images /ad /b /s y* > mylist.txt
for /f "tokens=* delims= " %%f in (mylist.txt)
for /f "tokens=* delims= " %%a in ('dir/b/a-d')
set /a N+=1
This created a list of folders into mylist.txt and
then counted. Sseemed like it would be on
the right track, but 1) it didn't like folders with a
space in the name (I'm sure there is a way
around this). 2) It just gave me a grand total
I'm hoping to get an output like:
etc. Not sure if this is even possible, but
hoping a brilliant mind can help.