Hei,

Nick Andriash wrote:

> I just remember to delete the files every once in a while.

I also have these tmp files (fprot anti virus plugin, Baysefilter anti
spam plugin, no on access virus scanner, 10 pop3 accounts, 1 imap). I
found a vbs script which deletes files older than a configurable amount of
days in a configurable directory:

Verzeichnis = "C:\tmp\tmp"
Aufheben    = 3
' Ende der Anpassungen
Set fso = CreateObject("Scripting.FileSystemObject")
Set ordner = fso.GetFolder(Verzeichnis)
Set dateien = ordner.Files
heute = Date()
For Each datei In dateien
  If datei.DateLastModified < (heute - Aufheben) Then
    datei.Delete
  End If
Next

Save this as yourdesiredfilesname.vbs and adjust first (Verzeichnis =
directory) and second line (Aufheben = keep (days)). I downloaded it from
the German it magazine c't which means you can regard is as safe. Put it
in the autostart folder and every time you start your Windows, all files
older than 3 days are deleted. Be careful that you don't have any
important files in the directory, as you can't configure that it just
deletes *.tmp files!

Regards,
G�nther

-- 
Automatic and free virus scanning with F-PROT, ROT13 and German FAQ:
http://www.guenther-eisele.de/bat/index_e.htm
TheBat! 3.0.1.33, Windows 2000 SP4 German




________________________________________________________
 Current beta is 3.0.2.4 Rush | 'Using TBBETA' information:
http://www.silverstones.com/thebat/TBUDLInfo.html
IMPORTANT: To register as a Beta tester, use this link first -
http://www.ritlabs.com/en/partners/testers/

Reply via email to