what are other ways to do ping in vb.net or c# other than the way found here?
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)
There's a WMI class which encapsulates ping, WIN32_PingStatus, which you can use from a client with XP/2003 or later.
You can launch cmd.exe and execute the ping command by writing to StandardInput To retrieve results read from StandardOutput.
精彩评论