Robocopy syntax for creation date rather than modified date

Hello,

I am trying to archive all data created before 2010 on a Windows 2003 file server.

The below is by modified date it shows only 316GB which can be archived.

robocopy e: c: /L /minage:20100101 /e /log:c:files5.txt /fp /ts

Total Copied Skipped Mismatch FAILED Extras
Dirs : 788027 788017 10 0 0 25
Files : 6159066 2054498 4104568 0 0 28
Bytes :2431.635 g 316.057 g2115.578 g 0 0 7.324 g
Times : 0:46:01 0:00:00 0:00:00 0:46:01

Thanks



Robocopy doesn't have the ability to copy files based on the Date created field. You will need to look at using some other method (perhaps VB Script?) to achieve this.

The /minage switch uses the Date modified field.
The /minlad switch uses the Last accessed field.

There are no other date switches you can use with just Robocopy unfortunately.



Robocopy doesn't have the ability to copy files based on the Date created field. You will need to look at using some other method (perhaps VB Script?) to achieve this.

The /minage switch uses the Date modified field.
The /minlad switch uses the Last accessed field.

There are no other date switches you can use with just Robocopy unfortunately.



Try below robocopy switches:
/MINAGE:n - MINimum file AGE - exclude files newer than n days/date.

Here type number of days since specific date from year 2010 to today

OR

/MINLAD:n - Minimum Last Access Date - exclude files used since n.
Here type number of days from 2015 current date to 2010 specific date

(If n < 1900 then n = n days, else n = YYYYMMDD date).


Note: Above switches taken from 2012 R2 version of robocopy
Ensure it does exists in 2003 2008 or whatever earlier version you are using
Type robocopy /? for more info.



Mahesh, what you have provided doesn't give the creation date. Would you guys have a VBScript that does this for me?



You can try this script:



Ok
I have overlooked I think, you are right

Share this

Related Posts

There was an error in this gadget