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
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ashok PatelPosted Jul 2, 2014, 4:38 AM
string destinationLocation = @"D:\destinationLocation";
List
foreach (string filePath in listofFiles)
{ File.Copy(filePath,Path.Combine(destinationLocation,Path.GetFileName(filePath)));
}