1. Copy file older than X day to destination folder
> robocopy (Source) (Destination) /move /minage:x
example: robocopy c:\temp c:\delete /move /minage:7
copy file older than 7 days form c:\temp to c:\delete
2. Delete all file at c:\delete
> del /q destination
example: del /q c:/delete
regards,
Asnan
No comments:
Post a Comment