detect if machine is online or offline using WMI and C#

后端 未结 3 2116
抹茶落季
抹茶落季 2021-01-21 22:24

I use vs2008, winxp, in LAN network with Win2003 servers.

I want a application installed in winxp for detect if win2003 machines is online or offline , and if offline wh

3条回答
  •  执念已碎
    2021-01-21 23:11

    I would go for the .NET System.Net.NetworkInformation.Ping, because it is quite flexible, you have the possibility of doing it asynchronously and I find it more intuitive than WMI (I have used both and use WMI only if I need to get more info from the remote machine than just the ping). But this is just a personal opinion.

提交回复
热议问题