tags:

views:

76

answers:

2

what are other ways to do ping in vb.net or c# other than the way found here:

Dim pinger As New System.Net.NetworkInformation.Ping
MessageBox.Show(pinger.Send("192.168.0.119").Status.ToString)
A: 

You can launch cmd.exe and execute the ping command by writing to StandardInput To retrieve results read from StandardOutput.

Giorgi
+1  A: 

There's a WMI class which encapsulates ping, WIN32_PingStatus, which you can use from a client with XP/2003 or later.

Stuart Dunkeld
WMI can also be remoted, so you can do a ping from a second computer to a third.
Richard