Now the if condition in question is the search through the files in the old file path folder (olfpath) and uses their file names to find a match string of text.
so..
to answer your previous question, this line: Left(fso.GetFileName(Thisfile.Path), 3) = "sql" is the file name string checker.
it says look in the olfpath and test the first three characters of all the files in the olfpath folder.
if any of those files names begin with "sql" then copy .......
i believe yours are different, i would imagine something like: Left(fso.GetFileName(Thisfile.Path), 15) = "wally*"
This would mean that it would be nice to have a set standard for your file names for ease. (this is why i asked how your files are named yesterday.)
there is still a bit more to do to the code to adapt it to check for different cases to test against eg if the file is a diferent name change folder path of paste.
Bookmarks