Add delay in batch file

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
mohdfraz
Posts: 69
Joined: 29 Jun 2011 11:16

Add delay in batch file

#1 Post by mohdfraz » 13 Jul 2017 07:45

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

mohdfraz
Posts: 69
Joined: 29 Jun 2011 11:16

Re: Add delay in batch file

#2 Post by mohdfraz » 13 Jul 2017 07:53

Hi,

Please ignore my post, I found the solution.

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

Code: Select all

TIMEOUT /T 10 /NOBREAK


Thanks

Post Reply