I currently have 2 folders on my desktop "START" and "END". There could be any number of files in start folder but I need to figure out the following.
If the filenames exist in the START FOLDER then check if they exist in the END Folder and if they do COPY the files that exist.
I have stated the strings in the code and have used GetFiles to find the file names in each folder. But cant piece it together ...
var USERNAME = Environment.UserName;
string START_DIRECTORY = @"C:\Users\" + USERNAME + "\\Desktop\\START";
string END_FOLDER_STRING = @"C:\Users\" + USERNAME + "\\Desktop\\END";
string[] files = System.IO.Directory.GetFiles(START_DIRECTORY);
string[] files2 = System.IO.Directory.GetFiles(END_FOLDER_STRING);