Code: Select all
ping -w %1 128.0.0.1 -n 1 > NUL
Is 128.0.0.1 always good for getting a "Request timed out." response from ping so that the -w option will control the delay ?
Supplementary question :-
Why is -w always wrong ?
Can I fix it somehow, perhaps in the registry ?
I find the actual delay achieved is 500 mSec more than I ask for,
e.g. the argument has to be 9500 if I really want 10000 mSec,
and an argument of 100 gives me 500 mSec.
I find a delay of only 200 mSec when I use
ping -w %1 127.0.0.1 -n 1
If I could fix this offset I should be able to control down to 200 mSec instead of 500 mSec.
My only option below 500 mSec seem to be
390 mSec via "PING Google.net -n 1 > NUL"
or something a bit smaller if I aim at a site that is not across the Atlantic.
Alan