Re: Delete files which are 30 days old.

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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"
.



Relevant Pages

  • Re: integer value too large?
    ... Also you probably dont want the but but this is ... impossible to say without knowing what ... ... Can you put the whole script (or a couple of lines around this command ...
    (comp.lang.tcl)
  • Re: Delete files which are 30 days old.
    ... 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 ... asked and answered on a regular basis. ...
    (microsoft.public.win2000.cmdprompt.admin)
  • Adding Printers to users at login
    ... How to I add printers to users at there first login. ... would like to script it but i dont know the command i've ...
    (microsoft.public.win2000.printing)
  • find problem
    ... Im having problem in using find esp the -prune ... I want to find txt files from the path from the command line input ... but I dont want to get the txt files from path given on the second ... and my script is about like this ...
    (comp.unix.admin)
  • Re: Problems trying to configure Linux laptop to print to Windows XP shared printer
    ... map to guest = Never ... check password script = ... enumports command = ... ldap delete dn = No ...
    (comp.os.linux.setup)