开发者

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

开发者 https://www.devze.com 2022-12-14 20:56 出处:网络
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

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

精彩评论

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