if "%2"=="" goto loop goto runit :loop @echo off for /l %%a in (0, 1, %1) do call smtpstress.cmd ignore %%a goto end :runit blat.exe body.txt -server 10.10.10.85 -to ziel@firma.de -f sender@firma.de -s %2 wait 5 :end