Count files of a particular type using batch

Microsoft Windows xp professional w/serv...
December 3, 2009 at 21:59:42
Specs: Windows XP

Does anyone know how to write a batch file that counts the number of xml files I have in the current directory?

Thanks in advance!

See More: Count files of a particular type using batch

Report •

December 3, 2009 at 23:58:55
Can't help you there, but you might find the info you need at this site:

That site helped me like a million times when writing scripts.

Or else post in the programmers section.

Report •

December 4, 2009 at 03:10:15
@echo off & setLocal EnableDELAYedExpansion

set N=
for /f "tokens=* delims= " %%a in ('dir/b *.xml') do (
set /a N+=1
echo file count: !N!

Helping others achieve escape felicity


Report •

Related Solutions

Ask Question