kingleroyg
Active Member
I take it you are a junior. So:
Don't call your variables filepath and folder2. Rather called it sourceFolder and destinationFolder (self documenting code)
sPattern = searchPattern/filter
folder1 = sourceFiles
And then the variable you use to loop ... foreach(var file in sourceFiles)
You may think it is nitpicking but naming your variables better will avoid things like File.Exists(folder2)
Rather use Path.Combine() instead of string + string
If i was your boss I'd slap you and make you wash my car over the weekend![]()
LMAO, thanks for the much needed advice
I forgot who the program code is for , was explaining it like I would too a client :wtf: