摘要: void CopyDirectory(string SourcePath,string DestinationPath){ //创建所有目录 foreach(string dirPath inDirectory.GetDirectories(SourcePath,"*",SearchOption.AllDirectories)) Directory.CreateDirectory(dirPath.Replace(SourcePath,DestinationPath)); //复制所有文件 foreach(string newPath inDirectory.GetFiles 阅读全文
posted @ 2013-08-22 10:12 巴别塔 阅读(935) 评论(0) 推荐(0) 编辑