i have a list of files which i get from source directory now i need to insert/copy these files to my local folder/directory
please help
Generic list copy to folder/directory
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Ashok Patel19 reputationPosted Jul 2, 2014, 12:38 AM EDT
string destinationLocation = @"D:\destinationLocation";
List
foreach (string filePath in listofFiles)
{ File.Copy(filePath,Path.Combine(destinationLocation,Path.GetFileName(filePath)));
}