Wait, Sleep, Hold - :sleep

The :sleep function puts the batch execution on hold for a certain amount of second.

:sleep -– waits some seconds before returning

::     — %~1 – in, number of seconds to wait

FOR /l %%a in (%~1,-1,1) do (ping -n 2 -w 1 127.0.0.1>NUL)

goto :eof

Leave a Reply

You must be logged in to post a comment.