foxidrive wrote:aGerman wrote:As mentioned before I don't see an easier way ...
I don't see any drawback from bars143's method, do you?
Well we are talking about nested loops. How do we return to the outer loop?
Even if you would find a way - how many times can you nest calling a lable without drawback?
Code: Select all
@echo off &setlocal
set /a "n = 0"
:foo
set /a "n += 1"
echo %n%
call :bar
:bar
goto foo
In my tests it counts until 705 then dies with the message that the maximum of recursions was reached.
Regards
aGerman