You can use WMI (add referrence/import to system.management)
Dim objPing As New SelectQuery("SELECT StatusCode FROM Win32_PingStatus
where address='" & machinename_or_ipaddress & "'")
Dim objSearch as New ManagementObjectSearcher(objPing)
Dim PingStatus As String = ""
For Each objItem as In objSearch.Get()
PingStatus = objItem("StatusCode").ToString
Next
if PingStatus <"0" Then
' failed
else
'success
end if
HTH,
Phil
"Robert Dufour" wrote:
Its easy in 2005 but I'm stuck with 2003 for now
Can anyone provide a snippet of code?
Thanks for any help.
Bob