I'm looking for a file copy utility that allows me to control what files and directories are to be copied specifying rules like:
IF source-file-date IS GREATER THAN target-file-date THEN overwrite
IF source-file-size IS EQUAL TO target-file-size THEN skip
The FTP client I use (CuteFTP Pro) has that feature (you can define a set of rules that controls the file uploading process).
But as far as file copy utilities, I havent found one that let me do this. So far, I've tried Robocopy and RichCopy but none of them let me fine-control the copy operation.
In general terms, I need to synchronize two directory trees, i.e. copy the new or modified files from the source tree to the target tree and delete the files in the target tree that dont exist in the source tree.
However, I need to fine control the operation like this:
- If a directory in the target tree is not present in the source tree, then leave that directory untouched (dont even enter in that directory)
- if a file in the source tree has the same size as the file in the target tree then dont copy that file, no matter if it's older or newer.
Plus I'd like to control the logging. Robocopy and RichCopy let you control which operations are logged and which ones are not, but they have the same limitations as with he copy operation, i.e. they dont let you fine-control the logging opration either, they just provide some basic functionality.
Do you know if there is such a copy utility that let me do this in Windows??