SETVAR i = 0 SETVAR num = 50 REM Can be read as: For i = 0; i < num; i++ LOOP COND %i% < %num% ? REPEATS 1 SETVARO i = set /a %i% + 1 | ^ DISPMSG %i% or do something here ^ && CONTINUE REM Append time lapsed into text file: data\sum.txt SHELL echo %i% %DURATION_FROM_START% >> @@data\sum.txt