@echo off rem built to run an application iterating over multiple arguments rem the application to use is the first argument SETLOCAL SET mytempapp=%1 SHIFT IF "%1" == "" GOTO END rem loop over all the rest of the arguments :LOOP %mytempapp% %1 SHIFT IF "%1" == "" GOTO END GOTO LOOP :END