Looking at the script, the actual copy occurs in this section
-----------
' ****** Copy the file **************************
if (OK = True)
If (Folder.ToLower() = "folder") Then
FolderName = Dest & System.IO.Path.GetFileNameWithoutExtension(fichiers(compteur)) & "\"
System.IO.Directory.CreateDirectory(FolderName)
End If
If (Folder.ToLower() = "date") Then
FolderName = Dest & System.DateTime.Now.Year.ToString() & "-" & System.DateTime.Now.Month.ToString() & "-" & System.DateTime.Now.Day.ToString() & "\"
System.IO.Directory.CreateDirectory(FolderName)
end if
System.IO.File.Copy(fichiers(compteur), FolderName & System.IO.Path.GetFileName(fichiers(compteur)))
NbCopie = NbCopie + 1
end if
Next
-------------
Now, in DOS, you can use the switch /y at the end of the copy command to force an overwrite. Not sure if this will work here, but you might try this ....
Replace the System.IO.File.Copy, etc with this
System.IO.File.Copy(fichiers(compteur), FolderName & System.IO.Path.GetFileName(fichiers(compteur))" /y")
You might have to play with the quotes, etc.
I don't have any way of testing, and not sure if this script will actually use the same parameters as the actual DOS copy command, but worth a shot.