Skip to content

Instantly share code, notes, and snippets.

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