PhantomScript v1.7 Reference - Copyright © 2006 P1 Systems Incorporated. All Rights Reserved.

Prev | Next | Users Guide | PhantomScript Reference | P1 Systems


Networking

Ping

Syntax

Ping <hostname-or-address>

Description

Returns the roundtrip ping time for the specified Internet host.

Parameters

<hostname-or-address>

The Internet host name or numeric address.

Remarks

This statement performs a ping communication to the specified host. If no response is received within the timeout period specified by the intrinsic variable PingTimeoutMs, -1 is returned.

Example

   Local roundTripMs
roundTripMs = Ping "www.p1.com"
MessageBox Title="Round trip milliseconds" Text=roundTripMs StayInFront

The above script fragment displays the roundtrip ping time to the P1 Systems host.



Prev | Next | Users Guide | PhantomScript Reference | P1 Systems

PhantomScript v1.7 Reference - Copyright © 2006 P1 Systems Incorporated. All Rights Reserved.