|I am working on a backup script to delete old folders from a folder.My backup folder looks like this (backup_mm_dd_year is a folder)|
I was looking at using robocopy to delete folders older than say 7 days. That is, let's say I run a script on day 13, it should delete any backup_mm_dd_yy older than 7 days. that means it should delete backup 5_1-3_2014.
I see that robocopy have a switch --- /maxage:n -- exclude files older than n days/date. Is there anyway to tell robocopy to simply check at the folder level instead of at the file level?
In essence, I simply want robocopy to check /maxage:n at the folder level instead of checking at the file level.
Any help will be greatly appreciated.
message edited by xirsteon