Home > Uncategorized > for loop in batch script

for loop in batch script

for /l %%X in (start, step, end) do command

example:

for /l %%X in (1,1,10) do (echo %%X)

This switch is an “ell”, not a “one”

More Powerful Batch Files Part II – Iterating with “For”

Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.