Monday, 23 May 2011

Delete files older than... in windows

You can use robocopy:
ROBOCOPY C:\work C:\trash /move /minage:14
or xcopy
xcopy *.* /d:04-12-2006 C:\trash
and at the end:
rmdir /s /q C:\trash

Possibly Related Posts

No comments:

Post a Comment