set /a counter=0 timeout /t 15 :loop call screenCapture %counter%.jpg set /a counter+=1 timeout /t 900 goto loop