Robocopy - Needs Creation Date Functionality
Posted to Bug as all other robocopy posts have been placed here.
It is fairly common for organisations to have a temporary area accessible by all staff to allow a common area to access files. For these type of temporary areas, some sort of scheduled cleaning regime needs to be in place so that files older than a certain number of days are automatically removed.
A common cleaning approach is to move files past a nominated age to a staging folder and then empty the staging folder. Unfortunately robocopy's MINAGE switch operates on Modified Date that makes it non-functional for moving files based on nominated age.
By way of example, a file/s edited many months ago needs to be made available to other staff, so a copy of the file is placed in the temporary area (most staff will use Windows Explorer for this). The Modify Date on the copy does not change from the original and the Creation Date on the copy is obviously set to when the copy was created. A cleaning regime using robocopy will use the Modified Date and remove the file/s the next time it is run.
In summary robocopy needs 2 more switches MINxxx & MAXxxx that operate on Creation Date.