Coping files with RoBOCopy

  • Thread starter Thread starter Pat
  • Start date Start date
P

Pat

When using the purge option with robocopy, is there a way
to not purge a file unless its two weeks old? I would like
to delete the file on the source after two weeks have gone
by and it's still not on the destination. This is just in
case a file was deleted from the dest. by accident.

Thank You.
 
When using the purge option with robocopy, is there a way
to not purge a file unless its two weeks old? I would like
to delete the file on the source after two weeks have gone
by and it's still not on the destination. This is just in
case a file was deleted from the dest. by accident.

Try the paramter /MINAGE.

From "robocopy.doc" (Robust File Copy Utility Version 1.95):

/MINAGE:n Excludes files newer than n days or specified
date. If n is less than 1900, then n is expressed
in days. Otherwise, n is a date expressed as
YYYYMMDD.

or see "robocopy /???"
 
Back
Top