A better way is to use the Forfiles tool, which you can find in the Windows resource kits. Forfiles lets you perform a date-based deletion. Here's a sample command:
Forfiles -p R:\MyFiles -s -m *.*article on how to delete old files:
-d -365 -c "Cmd /C Echo
0x22@Path\@File0x22"
http://www.windowsitpro.com/Article/ArticleID/44891/44891.html
No comments:
Post a Comment