如何检查服务器是否可访问?

时间:2014-03-10 10:04:18

标签: c# .net

Directory.Exists(@“\ MyServer \ Images”)命令可正常工作 Directory.Exists(@“\ MyServer”)不会。

您能否建议我使用“Directory.Exists”来检查服务器的可访问性。

请不要建议ping服务器,因为有时ICMP被服务器防火墙阻止,而PING命令不起作用。并且不要参考问题海报可以接受使用PING命令的类似问题。

0 个答案:

没有答案
相关问题