Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking at the ping command help and i cant see a parameter to change the time between pings. I don't mean the timeout time.

(For example i want to send a ping every 5 seconds)

Is this possible?

share|improve this question
up vote 3 down vote accepted

from a broadband forum:

Batch file

@echo off
ping -n 1 <destination>
ping -n 5 > NUL 2>&1
GOTO start

or in a single command

for /L %i in (1,0,2) do @ping -n 1 <destination> & ping -n 5 > NUL 2>&1
share|improve this answer
ping -n 5 > NUL 2>&1 Whats this doing? – tm1rbrt Jan 15 '10 at 12:56
> NUL redirects a program's output to the special file NUL, like /dev/null on Unix. And 2>&1 redirects stderr (all error messages) to the same place. – grawity Jan 15 '10 at 13:17
In general, this is a way to make it wait: "5 pings" to your own computer, without displaying results, before coming back to the beginning and doing the ping your are interested in. – Gnoupi Jan 15 '10 at 13:25
tm1rbrt: If you're on Vista you can also use timeout if that feels less hacky :-) – Joey Jan 15 '10 at 14:40
Without thinking, I named the batch file 'ping.bat' and marvelled at the many windows created as it called itself. Does the trick - thanks! – agtb Jul 21 '12 at 10:24

I don't think you can.

ping -t will send forever, but at the default rate.

share|improve this answer

You can use the 3rd party FPing tool to do what you want:

fping hostIP -c -t 5000

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.