Copy ONLY newer files
Posted: 05 Aug 2011 10:16
I use XCOPY /D option but it copies all the files with the NEWER and with the SAME (!!!) date.
Description for option says: copies only those files whose source time is newer than the destination time
How can I copy only with NEWER date but not the SAME?
Situation ... I make backup files every day and name it after weekdays so I have every 7 days the same filename. After I make backup I want to copy to second location only file from today which is newer than in second location. But XCOPY /D always copy ALL the files, with the newer date and with the same date, in other words the same files, I copy 6 same files and only 1 newer. Logically I would like to copy only 1 newer file.
Description for option says: copies only those files whose source time is newer than the destination time
How can I copy only with NEWER date but not the SAME?
Situation ... I make backup files every day and name it after weekdays so I have every 7 days the same filename. After I make backup I want to copy to second location only file from today which is newer than in second location. But XCOPY /D always copy ALL the files, with the newer date and with the same date, in other words the same files, I copy 6 same files and only 1 newer. Logically I would like to copy only 1 newer file.