Thanks Jon for answering this:
for /l
is your friend:for /l %x in (1, 1, 100) do echo %x
Starts at 1, steps by one, and finishes at 100.
Use two
%
s if it’s in a batch filefor /l %%x in (1, 1, 100) do echo %%x
–jeroen
Mike Verhagen on geerlingguy/my-backup-plan: Ho… | |
Attila Kovacs on docs.embarcadero.com unreachab… | |
David Blue on MacOS: converting a man page t… | |
jpluimers on How do I pretty-print JSON in… | |
jpluimers on Delphi 10.2 Tokyo Godzilla ISO… |
Posted by jpluimers on 2015/08/26
Thanks Jon for answering this:
for /l
is your friend:for /l %x in (1, 1, 100) do echo %x
Starts at 1, steps by one, and finishes at 100.
Use two
%
s if it’s in a batch filefor /l %%x in (1, 1, 100) do echo %%x
–jeroen
Posted in Batch-Files, Development, Scripting, Software Development | Leave a Comment »