摘要:
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 阅读全文