I am working on a project where I want to copy some files in one directory to a second already existing directory.
I can\'t find a way to simply copy from one folder to
This worked for me:
string picturesFile = @"D:\pictures"; string destFile = @"C:\Temp\tempFolder\"; string[] files = Directory.GetFiles(picturesFile); foreach (var item in files) { File.Copy(item, destFile + Path.GetFileName(item)); }