Avatar of Jonas Huber
Jonas Huber
 asked on

Batch script For Loop dynamic repeats

Hi,

i'm looking for a solution to run a For Loop a certain amount of times, which i set before in a variable.

i did something like this:
set /p count=Count:

for %%i IN (0,1,%%count%%) do

Open in new window


But no matter what i set the variable to, the code runs exact 3 times.
Where is my mistake ?
Windows Batch

Avatar of undefined
Last Comment
Jonas Huber

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
oBdA

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Jonas Huber

ASKER
Ok thanks that worked.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23