摘要: 方法1:using System.IO;if (File.Exists("d:\a.exe")) { //do something }if (Directory.Exists("d:\abc\")) { //do something }方法2:DirectoryInfoaPath=newDirectoryInfo(PathName); if (aPath.Exists) { //do somet... 阅读全文
posted @ 2009-09-25 16:12 novel 阅读(364) 评论(0) 推荐(0)