Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Robocopy

Status
Not open for further replies.

nath01

Technical User
Apr 13, 2004
74
GB
Hi,
I am trying to make a robocopy script that will move any file that hasnt been edited in 90 days to a archive folder on another server,

can this be done with robocopy? and could someone give me a kick start and point me in the right place?

Thanks!!!
 
Have a look here


it will give you a list of command switches to use looking at the page i think this is the switch you need to use.
/XN Exclude newer files (backup only older files)

Seems you can do it with xcopy as well.
 
Thanks for that,

1 last question

i have found the /minage switch for robocopy, however what date will this go by? created dat? modified date? or accessed date?
 
I'm not sure but my guess would be thats its the date when the file got modified as that will change the date for the file.

As viewing the file shouldn't change the date of the file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top