Is it possible to break loop?
Moderator: DosItHelp
Re: Is it possible to break loop?
Exiting a FOR /L is a whole different concept. We have a thread about it on the forums.
Re: Is it possible to break loop?
If you mean Infinite [FOR /L] loop with break condition, at quick reading the suggested solutions look too complex for my above task, and alternatively FINDSTR is slow in loops. Though this approach with the :WHILE function or that "restart the batch" one look promising. Also it shows, the way to create an infinite FOR /L loop is leave the count numbers undefined inside () parentheses, but the "increment the limit" task complicates things. May be setting a fixed end limit, or using infamous GOTO to simplify things and keep an eye on the batch ball would suffice.