:: Listing 1. CountLoops.bat @Echo Off Set /a counter=0 :Top Set /a counter=%counter%+1 Echo Running the routine for pass number %counter% If %counter% LSS 10 GoTo :Top Echo Run complete Pause