M Michael Bednarek Apr 1, 2005 #3 How do I generate the sequence 1 7 16 using "for /L"? Click to expand... I don't see how it's possible with /L. However: FOR %i IN (1 7 16) DO ECHO %i works.
How do I generate the sequence 1 7 16 using "for /L"? Click to expand... I don't see how it's possible with /L. However: FOR %i IN (1 7 16) DO ECHO %i works.
A Al Dunbar [MS-MVP] Apr 2, 2005 #4 Michael Bednarek said: I don't see how it's possible with /L. However: FOR %i IN (1 7 16) DO ECHO %i works. Click to expand... I agree with you and David that "for /L" is not the best tool for the job compared with the original for command. But it *is* possible to generate the sequence "1 7 16" using a "for /L" loop: for /l %X in (1,1,1) do echo/1 7 16 /Al
Michael Bednarek said: I don't see how it's possible with /L. However: FOR %i IN (1 7 16) DO ECHO %i works. Click to expand... I agree with you and David that "for /L" is not the best tool for the job compared with the original for command. But it *is* possible to generate the sequence "1 7 16" using a "for /L" loop: for /l %X in (1,1,1) do echo/1 7 16 /Al