bobbby June 26, 2006 at 16:38:17 Specs: XP SP2, 3.2 ghz
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.
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this
site. Computing.Net and Purch hereby disclaim all responsibility
and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY