|yeah, i kinda dropped off without explain.|
the idea is to change %comd% as needed.
%comd% can be either another batchfile or an executable.
f/e: pre-loop: set comd=bat1
:: set comd40=bat3...
either way, just change it at each loop-bottom:
set /a n1+=nbr
:: foll sets comd to: comd20, comd40...
if !n1! lss test goto :aa
ie: n1 advances 20 for each big-loop, and you want a different
batchfile for each big-loop, make batches or batchname-array
as(set %comd% to): bat20, bat40, bat60 and call %comd%.
kinda hard to explicate an i'm real tired, but i will try to help when the other shoe drops...