Question about "for /L"

  • Thread starter Thread starter BigMan
  • Start date Start date
How do I generate the sequence 1 7 16 using "for /L"?

I don't see how it's possible with /L. However:
FOR %i IN (1 7 16) DO ECHO %i
works.
 
Michael Bednarek said:
I don't see how it's possible with /L. However:
FOR %i IN (1 7 16) DO ECHO %i
works.

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top