How to delete a file depending on date

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I would like to delete files that has a date older than a month.
Is there anyone who know any toll or script that can do that?
 
I would like to delete files that has a date older than a month.
Is there anyone who know any toll or script that can do that?

Here's how I delete files older than 30 days, using 4NT:
DEL /[d-30,1980/1/1]

I use this regularly to delete old log files and such.

4NT's date ranges are documented at
<http://jpsoft.com/help/dateranges.htm>

If you really want to delete files older than exactly one month, ask
again - it will require a slightly more elaborate solution. But I
suspect "older than 30 days" might suffice.
 
Back
Top