I have a if loop that will display all values up to the LOOPMAX. My problem is that i want this same output in the form of a FOR /L structure. I am a little confused and am wondering if this can be done.
SET LOOPMAX=6
IF %count% GTR %LOOPMAX% GOTO END
ECHO. %test%
SET /A COUNT=%count%+1
GOTO BEGINLOOP
:END
So, if the LOOPMAX is set 6 than the output looks like:
01 test
02 test
03 test
04 test
05 test
06 test
I need that exact output from a FOR /L.
Any help is greatly appreciated, thank you in advance.