SETVAR inputX REM While inputX != 100; Do something LOOP COND %inputX% != 100 ? REPEATS 1 DISPMSG Do something here | SETVARI inputX && CONTINUE REM Append time lapsed into text file: data\sum.txt SHELL echo %i% %DURATION_FROM_START% >> @@data\sum.txt