I'm trying to use a bat file to count the number of files in a folder.
I tried:
dir /a /s "C:\folder" |find /c /v ""
but for some reason it doesnt report the total accurately (12 too many).
I also tried:
dir "C:\folder" |find /v ""
it reports the right number of files, but it also lists too much crap. I just want a single number in my dos prompt.Ideas anyone?

I just found this somewhere and it is accurate: dir "C:\folder" /b/s |find /v /c "::"
so never mind ;-)
If you want ONLY FILES add /a-d
=====================================
If at first you don't succeed, you're about average.M2
