Showing posts with label while loop. Show all posts
Showing posts with label while loop. Show all posts

Wednesday, June 28, 2017

Dos for loop with delay

Command below performing 1000 iterations printing number with 1 second delay interval

for /l %i in (1,1,1000) do timeout /t 1 > nul| echo %i

Additional refer:
https://hubpages.com/technology/How-to-Make-A-Windows-Batch-File-Loop-Sleep-or-Delay-For-Specific-Interval-of-Time