The Ping UDF on my site allows you to specify the number of pings. If you specify 10 pings and it replies after the first try, it returns immediately, otherwise it keeps trying until it gets a reply or the number of permitted attempts are exceeded.

If you Ping(host,10) it pings the host, but if you Ping(host,-1) it returns the IP address of the host if it can be resolved, kind of like a NSLookup. It supports an optional 3rd arg to define the ping timeout. It uses WSH and the standard O/S ping.exe.

See also the KFPing() UDF, which runs with KixForms.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D