@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 60 seconds, and packetsize defaults to 64 bytes. The minimum packet size is 12 bytes, and the maximum is 65520 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.




echo %@ping[microsoft.com]

echo %@ping[microsoft.com,10]

echo %@ping[microsoft.com,,16]

echo %@ping[,2,512]