Question : How to delete files based on their age in day

How can I use a batch file to delete files based on creation date in days

Answer : How to delete files based on their age in day

You can do this with a vbscript like the one from this article:
http://www.microsoft.com/technet/scriptcenter/resources/qanda/nov06/hey1117.mspx

Doing it in batch is difficult, as math with dates is problematic.  There is the Forfiles utility, but it only works on modified date, not creation date.

http://technet.microsoft.com/en-us/library/cc753551.aspx
Random Solutions  
 
programming4us programming4us