:: COUNT.BAT - An example of one way to count in a batch file. :: Tom Lavedas :: http:://www.pressroom.com/~tglbatch/ @echo off > {c} if [%1]==[] for %%v in (echo goto:End) do %%v Syntax: %0 Number :Loop >>{c} echo ! < {c} find /c "!" < {c} find /c "!" | find "%1" > nul if errorlevel 1 goto Loop {This requires DOS version 6.x or higher} :End del {c}