Reputation: 4412
I have looked over the copy and xcopy batch commands. Both of them do not seem to support "copy new files only regardless file date time - name comparing only" option. Please advise.
Upvotes: 1
Views: 7271
Reputation: 65971
Have a look at ROBOCOPY. Invoking it with the following switches will recursively copy the files from source_dir
that do not yet exist in destination_dir
:
robocopy source_dir destination_dir /s /xc /xn /xo
Als see the RoboCopy Manual for an explanation of the switches.
Upvotes: 7
Reputation: 39014
Perhaps you should look at rsync. It has a Win32 port and it can copy files based on a number of considerations including whether it exists or is different at the destination.
I think you want the switch:
--ignore-existing skip updating files that exist on receiver
Upvotes: 0
Reputation: 117330
/D
/D:m-d-y Copies files changed on or after the specified date.
If no date is given, copies only those files whose
source time is newer than the destination time.
Edit: What do you mean by new?
Upvotes: 1