I need to know how make the following statement not blow up and go into the exception handler, when the file is stuck in the parent directory.
File.Move(Path.Combine(targetDir, xmlFileName), Path.Combine(targetDir, xmlNewName));
What happens is the vendor is leaving the some of the files in the directory and on my Catch statement if the name is still there this blows up.
Since this program runs every five minutes I don't want to fill the event log with error messages.
How do I return the program without it blowing up?