Automated folder copy with file date created filtering?

Soldato
Joined
19 Dec 2006
Posts
10,338
Location
UK
Looking for an application that can copy the contents of a folder but with the additional ability to ignore anything that was created before a certain date so that it only copies the newer files.

Any ideas?

Thanks :)
 
Stick this in a .bat file

copystuff.bat
Code:
robocopy C:\source  C:\destination /s /mir /maxage:30
C:\source source directory
C:\destination destination directory

Either directory can be a file path, as in C:\source or a UNC path, as in \\computer\stuff

/s copies sub-directories within the source directory
/mir mirrors the contents of the source [deletions in the source get deleted in the destination]
/maxage:30 maximum age of file in days to copy, in this case 30 days.

I should point out that robocopy only copies files that are new or have changed, so if you are worried about copying over older files over and over, this wont happen with robocopy [meaning the /maxage switch probably isn't necessary].

For example, if the first copy operation copies say 1000 images. Then you add 5 new images and edit an existing one, the next robocopy operation will only copy 6 images. The other 999 won't be copied.
 
Last edited:
Stick this in a .bat file

copystuff.bat
Code:
robocopy C:\source  C:\destination /s /mir /maxage:30
C:\source source directory
C:\destination destination directory

Either directory can be a file path, as in C:\source or a UNC path, as in \\computer\stuff

/s copies sub-directories within the source directory
/mir mirrors the contents of the source [deletions in the source get deleted in the destination]
/maxage:30 maximum age of file in days to copy, in this case 30 days.

I should point out that robocopy only copies files that are new or have changed, so if you are worried about copying over older files over and over, this wont happen with robocopy [meaning the /maxage switch probably isn't necessary].

For example, if the first copy operation copies say 1000 images. Then you add 5 new images and edit an existing one, the next robocopy operation will only copy 6 images. The other 999 won't be copied.

Perfect! :D

Thanks SiriusB :)
 
Back
Top Bottom