摘要:
1这是最简单的方法 DirectoryInfo di = new DirectoryInfo(string Path); di.Delete(true); 注:path是你要删除的非空目录; true:你要删除里面所有的文件,包括文件夹和子文件夹2/// /// 删除非空文件夹 /// /// 要删除的文件夹目录 void DeleteDirectory(string path) { DirectoryInfo dir = new DirectoryInfo(path); if (dir.Exists) { DirectoryInfo[] childs = dir.GetDirector... 阅读全文
posted @ 2013-07-15 10:37
浩凡儿
阅读(633)
评论(0)
推荐(0)
浙公网安备 33010602011771号