Jump to content

A for loop is the simplest loop.

 

FOR /L %%A IN (1,1,200) DO (
  ECHO %%A
)

 

Where 200 is the number of times to loop

 

source: https://stackoverflow.com/questions/1355791/how-do-you-loop-in-a-windows-batch-file

I edit my posts a lot.

Link to comment
https://linustechtips.com/topic/894544-loop-in-batch/#findComment-11025813
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×