Hi,
You can delete the file if it exists:
if(System.IO.File.Exists(filepath))
System.IO.File.Delete(filepath);
args.MoveTo(filepath);
or you can report error if you do not want to override it:
if(System.IO.File.Exists(filepath))
{
SendAlert("File already exists");
return;
}
args.MoveTo(filepath);
Regards,
Terry