This is mostly a question and maybe a feature request.
Below, the first DO was interrupted; the second was not. After the second DO, _DO_LOOP has the value from the interrupted DO. How does that happen?
Feature request: Could _DO_LOOP, outside any DO loops, be made to always have the vaule from the last (outermost) DO loop (successfully completed or...
Read more
Below, the first DO was interrupted; the second was not. After the second DO, _DO_LOOP has the value from the interrupted DO. How does that happen?
Code:
v:\> do i=1 to 1000000000 ( echo. > nul )
^C
v:\> echo %_do_loop
5943
v:\> do i=1 to 10 ( echo. > nul )
v:\> echo %_do_loop
5943
Feature request: Could _DO_LOOP, outside any DO loops, be made to always have the vaule from the last (outermost) DO loop (successfully completed or...
Read more