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 ...
stackoverflow.com