Hi,
How about a simple commandline?
C:
cd \imail\spool\virus
del .
Y
should bring you a long way.
If you want to break it down a bit do "Del a*.*",
"Del b*.*", etc. to be able to let the server "get some air" in
between.
For the future....... Here is what I use each
night:
DTLog is a small program I wrote which prepends
each line with a date/time stamp. You need to modify those lines. The batchfile
below is based on what someone else submitted here a while ago.
------<quote>--------------------
rem @Echo Off
rem BB 10-mei-2004 rem E-mails met virussen niet automatisch verwijderen maar een X aantal rem dagen bewaren. We doen dit door een aantal directories te gebruiken rem en deze steeds verder op te schuiven door de naam te veranderen. De rem oudste directory gooien we weg. SET LOGFILE=C:\Beheer\Logs\Virrot.log SET DTLOG=C:\Beheer\DTLog.exe %DTLOG% %LOGFILE% Rotating virus
directories
C:
cd \IMail\Spool\Virus rem BB 6-dec-2004
rem We bewaren nu 7 dagen i.p.v. 5 dagen. If Exist VirusDay7 RD /S /Q VirusDay7
IF ErrorLevel 1 Goto ErrDel7 Set RotDay=6 If Exist VirusDay6 Ren VirusDay6 VirusDay7 IF ErrorLevel 1 Goto ErrRot Set RotDay=5 If Exist VirusDay5 Ren VirusDay5 VirusDay6 IF ErrorLevel 1 Goto ErrRot Set RotDay=4 If Exist VirusDay4 Ren VirusDay4 VirusDay5 IF ErrorLevel 1 Goto ErrRot Set RotDay=3 If Exist VirusDay3 Ren VirusDay3 VirusDay4 IF ErrorLevel 1 Goto ErrRot Set RotDay=2 If Exist VirusDay2 Ren VirusDay2 VirusDay3 IF ErrorLevel 1 Goto ErrRot Set RotDay=1 If Exist VirusDay1 Ren VirusDay1 VirusDay2 IF ErrorLevel 1 Goto ErrRot MD VirusDay1 IF Exist *.SMD Move *.SMD VirusDay1 IF ErrorLevel 1 Goto ErrMov1s IF Exist *.GSC Move *.GSC VirusDay1 IF ErrorLevel 1 Goto ErrMov1g %DTLOG% %LOGFILE% Rotating VirusDay directories OK Dir VirusDay1 > Temp1 Find "File(s)" < Temp1 >> %LOGFILE% Del Temp1 Goto Einde :ErrDel7 %DTLOG% %LOGFILE% Error deleting VirusDay7 directory and/or files Goto einde :ErrRot
%DTLOG% %LOGFILE% Error Renaming VirusDay%RotDay% directory Goto einde :ErrMov1s
%DTLOG% %LOGFILE% Error moving SMD files to VirusDay1 directory Dir . /a >> %LogFile% Goto Einde :ErrMov1g
%DTLOG% %LOGFILE% Error moving GSC files to VirusDay1 directory Dir . /a >> %LogFile% Goto Einde :Einde
SET LOGFILE= SET DTLOG= Exit ------<quote>-------------------- Met vriendelijke groet, Bonno Bloksma hoofd systeembeheer tio hogeschool hotelmanagement en toerisme
--- This E-mail came from the Declude.JunkMail mailing list. To unsubscribe, just send an E-mail to [EMAIL PROTECTED], and type "unsubscribe Declude.JunkMail". The archives can be found at http://www.mail-archive.com. |
- [Declude.JunkMail] clean up virus folder netsolution webmaster
- Re: [Declude.JunkMail] clean up virus fo... Bonno Bloksma
- Re: [Declude.JunkMail] clean up virus fo... Darrell \([EMAIL PROTECTED])
- Re: [Declude.JunkMail] clean up viru... netsolution webmaster