$IP = "www.google.com"
$result = WMI_Ping($IP,32,false,0,true)
If NOT @ERROR Then
MsgBox(0, "SUCCESS", $result & " milliseconds")
Else
MsgBox(0, "", "FAIL")
EndIf
#cs --------------------------------------------------------------------------------------------------------
Name: WMI_Ping
Description: Ping a remote computer via WMI
Author: WeaponX
Parameters: (6 - Str,Int,Bool,Int,Bool,Str)
Address (String) - Hostname, IPv4 address, or IPv6 address (Vista only)
BufferSize (Integer)