SET /a VAR=0 :HOME SET /a VAR=VAR+1 IF %VAR%==1000 goto :End dotnet test goto :HOME :END