Trace: • for_loop_in_bat
FOR loop construct to run a given command any number of times.
FOR /l %i in (1,1,10000) DO myProg.exe
2nd example
FOR /l %i in (1,1,10) DO echo %i
3rd example
FOR /l %i in (1,1,3) DO telnet 192.168.1.8 77