Re: Delete files which are 30 days old.
- From: Michael Bednarek <mbATmbednarek.com@xxxxxxxxxxxxxxxxx>
- Date: Thu, 29 Nov 2007 20:01:01 +1000
On Wed, 28 Nov 2007 10:41:09 +0800, Leezy wrote in
microsoft.public.win2000.cmdprompt.admin:
any one can shade some lights ?
"Leezy" <leezy@xxxxxxxx> wrote in message
news:uEhpHCZLIHA.3848@xxxxxxxxxxxxxxxxxxxxxxx
Hi guys,
I am trying to create a script to delete files which are 30 days old.
i dont seems to find the command which is able to pick up files which are
1 month old.
any one can help?
Do you really mean "files which are 30 days old"? I assume you mean
"older than 30 days". In that case, try FORFILES.EXE:
FORFILES -d-30 del $FILE
or the CLI 4DOS (free)/4NT (commercial):
DEL /[d-30,1/1/1980] d:\path\
--
Michael Bednarek http://mbednarek.com/ "POST NO BILLS"
.
- References:
- Re: Delete files which are 30 days old.
- From: Leezy
- Re: Delete files which are 30 days old.
- Prev by Date: Re: How to add yesterday's date to a filename if/when a job is run after midnight.
- Next by Date: Re: How to add yesterday's date to a filename if/when a job is run after midnight.
- Previous by thread: Re: Delete files which are 30 days old.
- Index(es):
Relevant Pages
|