开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜