I have the following line of CMD code (not batch):
for /l %A in (1,1,2) do (echo "in loop") & echo "out loop; this should only be echoed once"
Basically, those brackets (at least I thought) is what were supposed to end the loop code and start a new command OUTSIDE of the do
command; however that doesn't seem to be happening.
If someone could tell me how to terminate the do
statement to execute the last echo
command individually after the loop instead of on each iteration of the loop while still keeping it a one-liner, it would be much appreciated.
Thank you for your time.