I want to copy all the content in a folder into two file destination folder.
foreach (string newPath in Directory.GetFiles(@"E:\autotransfer", "*.*",
SearchOption.AllDirectories))
File.Copy(newPath, newPath.Replace(@"E:\autotransfer",
@"E:\autotransferbackup"), true);
foreach (string newPath in Directory.GetFiles(@"E:\autotransfer", "*.*",
SearchOption.AllDirectories))
File.Copy(newPath, newPath.Replace(@"E:\autotransfer",
@"E:\autotransferbackupcp"), true);