Simple question about moving files

wjburke2

Active member
Joined
Feb 3, 2009
Messages
29
Programming Experience
Beginner
I have a program that cycle’s every 15 minutes to check for .bat files that need to be run. After it executes the all the .bat files it finds it moves them to an archive directory. If the user made a mistake and needs to modify and resubmit a bat file, I need to run it and then replace the file in the archive dir with the new one. I am using the System.IO.File.Move(FILE_NAME, MoveName) method to move the file. When it already exists it throws an exception. Is there anothER METHod oF doing this?
 
Back
Top