To update the files in the destination folder, I'd like to copy only the newer files whose older version are already in the destination folder.
I don't want to copy any files that are in the source folder but not in the destination folder.
This way, I'd not increase the number of files in the destination folder, only updating the existing files in the destination folder.
Example:
Source directory:
A.txt 2020-08-25 B.txt 2020-09-13 C.txt 2020-05-03Destination directory:
B.txt 2020-08-09 C.txt 2020-05-03
In this case, only B.txt should be copied because:
a) A.txt Doesn't exist in the destination folder, so, don't copy it,
b) B.txt In the destination folder is older, so, copy it,
c) C.txt In the destination isn't older, so don't copy it.
- Can
RoboCopydo this, or I need a batch file?