【发布时间】:2011-01-26 21:21:26
【问题描述】:
我用的是vs2008,winxp,局域网内有Win2003服务器。
我想在winxp中安装一个应用程序来检测win2003机器是在线还是离线,启动时是否离线。
我有这些参考资料,还有更多参考资料、代码示例和最佳实践吗??
http://danielvl.blogspot.com/2004/06/how-to-ping-in-c-using.html
http://snipplr.com/view/2157/ping-using-wmi-pingstatus/
http://dotnoted.wordpress.com/2005/01/15/the-popular-c-ping-utitility/
【问题讨论】:
-
不确定我得到“何时”,但如果机器离线,告诉它重新启动不是有点困难吗?
-
@Hans Passant:我也在考虑这个问题,我相信他想检测机器何时可用,即。 e.已启动。
标签: c# connection wmi monitoring ping