Page 1 of 1

Add delay in batch file

Posted: 13 Jul 2017 07:45
by mohdfraz
Hi,

Is there any way to add delay 2 seconds delay in batch file?

I normally use ping command but too many batch files sending ping to ipv6 is putting load on it and then I notice windows server 2016 is getting sluggish after few days. This start happens first in server 2012 recent update then I moved to windows server 2016 but this is happening in it as well. So i thought its better to use some other way to add delay in batch files.
ping -n 2 127.0.0.1

Thanks

Re: Add delay in batch file

Posted: 13 Jul 2017 07:53
by mohdfraz
Hi,

Please ignore my post, I found the solution.

http://www.robvanderwoude.com/wait.php

Code: Select all

TIMEOUT /T 10 /NOBREAK


Thanks