|
|
@PING[host[,timeout[,packetsize]]] : Returns the response time in milliseconds for the specified host. Host is the IP address or name, timeout is the maximum number of seconds to wait, and packetsize is the size of the data packet sent to the host in the ping request. The timeout defaults to 5 seconds, and packetsize defaults to 64 bytes. The minimum packet size is 8 bytes and the maximum is 2048 bytes.
A negative value indicates an error. If the request times out, @PING returns –1. An unreachable host returns -2. An invalid address returns -3.
Examples:
echo %@ping[microsoft.com]
echo %@ping[microsoft.com,10]
echo %@ping[microsoft.com,,16]
echo %@ping[192.168.1.100,2,512]