Below script moves files to the /Archive folder. In some cases the file may already exists in archive and if so is there a way to replace?
For Each objFile In fileColl
If objRegExp.Test(objFile.Name) Then
On Error Resume Next
filesys.MoveFile objFile, folderName & "archive\" & newFile
On Error Goto 0
End If
Next
For Each objFile In fileColl
If objRegExp.Test(objFile.Name) Then
On Error Resume Next
filesys.MoveFile objFile, folderName & "archive\" & newFile
On Error Goto 0
End If
Next