Tuesday, October 25, 2022

Easy File Retention Enforcement

  1. you have a folder d:\files, it has files in the root and in sub-folders
  2. the first line will move all files over 90 days to d:\files\temp
  3. the second line will delete d:\files\temp

ROBOCOPY D:\files\ D:\files\temp /s /move /minage:90 

RD /S /Q D:\files\Temp

No comments:

Post a Comment