DOS Batch - For Loop

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

Resources


Table of Contents
QR Code
QR Code tech:dos:others:for_loop_in_bat (generated for current page)