Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
BATCH simple loop template
set loopcount=[Number of times]
:loop
[Commands you want to repeat]
set /a loopcount=loopcount-1
if %loopcount%==0 goto exitloop
goto loop
:exitloop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment