BATLOOP.EXE 16-bit DOS MODE
Purpose Implement FOR loops in batch files.
Description Can be used to create FOR loops in batch files. The iteration variable is a DOS environment variable. As an example:

  set loopvar=10

  :start

  ...loop commands such as...
  echo This loop counter is now %loopvar%

  batloop -d -n loopvar
  if errorlevel 1 goto start


will execute 10 times before exiting. The iteration variable can count up (-i) or down (-d), to 0 or a target (-t).

    BATLOOP version 1.10    written by Lincoln Jaros

        batloop [options]

        Options:

          -n vname     name of the VNAME= variable (default: LOOP)
          -d           decrement variable by 1
          -d nn        decrement variable by nn
          -i           increment variable by 1
          -i nn        increment variable by nn
          -t nn        target value to test (default: 0)

    Inc or dec an environmental variable, then test against target -
    set errorlevel to 1 for not equal, 0 for equal

DOWNLOAD