Skip to content

Instantly share code, notes, and snippets.

@FleXoft
Created January 21, 2021 08:14
Show Gist options
  • Save FleXoft/e448778e8fcbe501ddbcd5bc0613ae9d to your computer and use it in GitHub Desktop.
Save FleXoft/e448778e8fcbe501ddbcd5bc0613ae9d to your computer and use it in GitHub Desktop.
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