:: LOOP.BAT - An example of a way to loop in a batch file, with a numbered counter. :: Tom Lavedas :: http:://www.pressroom.com/~tglbatch/ @echo %dbgc% off > {c} if [%1]==[] for %%v in (echo goto:End) do %%v Syntax: %0 Number > ----------.bat echo set {n}=%%2 :Loop >>{c} echo ! > {c}.bat find /c "!" {c} call {c} { Requires version 3.0 or later } echo %{n}% if not %{n}%==%1 goto Loop for %%v in ({c}.* ----------.bat) do del %%v :End