Created
January 21, 2021 08:14
-
-
Save FleXoft/e448778e8fcbe501ddbcd5bc0613ae9d to your computer and use it in GitHub Desktop.
BATCH simple loop template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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