FORFILES -pc:\foldername -s -m*.* -d-7 -c"CMD /C del @FILE" -p = path -s = include subdirs -m = match filetype -d = age in days (can also be set as an absolute date ie DDMMYYYY) note that - or + can be used here -c = command to execute
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Rogers Sent: Thursday, October 14, 2004 1:39 PM To: [EMAIL PROTECTED] Subject: Re: [Declude.Virus] Spool Dir Do you happen to have the batch? I've been writing some xcopy lines, but have had problems finding a simple date-specific delete statement. Thanks Douglas Cohn wrote: >I personally do not like installing anything on my Imail servers. That >said I use a sinple dos batch file to delete everything that is X days >old. I run it as a scheduled task daily. > >Doug > >-----Original Message----- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] On Behalf Of Kevin Rogers >Sent: Wednesday, October 13, 2004 1:15 PM >To: [EMAIL PROTECTED] >Subject: [Declude.Virus] Spool Dir > >I was wondering what everyone does with the Imail\spool\virus >directory. Do you delete all the files regularly? I've got 7000 files >in there since I installed Declude (2 weeks ago). > >--- >[This E-mail was scanned for viruses.] > >--- >[This E-mail was scanned for viruses by Declude Virus >(http://www.declude.com)] > >--- >This E-mail came from the Declude.Virus mailing list. To unsubscribe, >just send an E-mail to [EMAIL PROTECTED], and >type "unsubscribe Declude.Virus". The archives can be found >at http://www.mail-archive.com. >--- >[This E-mail scanned for viruses by Declude Virus] > > >--- >[This E-mail scanned for viruses by Declude Virus] > >--- >[This E-mail was scanned for viruses by Declude Virus >(http://www.declude.com)] > >--- >This E-mail came from the Declude.Virus mailing list. To unsubscribe, >just send an E-mail to [EMAIL PROTECTED], and >type "unsubscribe Declude.Virus". The archives can be found >at http://www.mail-archive.com. >--- >[This E-mail was scanned for viruses.] > > > > > --- [This E-mail was scanned for viruses.] --- [This E-mail was scanned for viruses by Declude Virus (http://www.declude.com)] --- This E-mail came from the Declude.Virus mailing list. To unsubscribe, just send an E-mail to [EMAIL PROTECTED], and type "unsubscribe Declude.Virus". The archives can be found at http://www.mail-archive.com. --- [This E-mail scanned for viruses by Declude Virus] --- [This E-mail scanned for viruses by Declude Virus] --- [This E-mail was scanned for viruses by Declude Virus (http://www.declude.com)] --- This E-mail came from the Declude.Virus mailing list. To unsubscribe, just send an E-mail to [EMAIL PROTECTED], and type "unsubscribe Declude.Virus". The archives can be found at http://www.mail-archive.com.