
How to delete files in Windows\Temp?
I would say the safest thing to do is not to delete files under a few days
old... Some files still may be "in use" by apps even though you ddon't get
file in use errors. This is what the cleanup utility does that comes with
win98 - it only deletes files over a week old.
--
James Johnston
ICQ Contact Information:
My ICQ# is 20539613. You can use this number to contact me using one of the
following methods:
* Page me online through my Personal Communication Center:
http://wwp.mirabilis.com/20539613
* Send me an E-mail Express message directly to my computer screen in real
* If you have ICQ installed, use my ICQ number: 20539613
Download ICQ at http://www.icq.com/
Quote:
>Dear all, I'm trying to clean up the Windows\Temp directory but as you know
>there are files which can't be accessed because they're in use by Windows.
>So if I try Kill, I would only get Access runtime error. So instead I
>specify the file types to delete, but then there are files that have no
>extension. Is there a way to specify "anything but *.tmp" in VB? Or better,
>"anything that's not in use by Windows"? The crude code I'm using at the
>moment
>is:
> File2.Pattern = "*.doc;*.htm;*.html;*.exe;*.txt;*.zip;*.pdf"
> File2.Path = WinTmpDir
> For i = 0 To File2.ListCount - 1
> Kill (File2.Path & "\" & File2.List(i))
> Next
>Thanks,
> Jules
>***24 hours in a day...24 beers in a case...coincidence?***
begin 666 James Johnston.vcf
M0D5'24XZ5D-!4D0-"E9%4E-)3TXZ,BXQ#0I..DIO:&YS=&]N.TIA;65S.SL[
M3#M73U)+.E5300T*0412.TA/344Z.SL[.SL[55-!#0I,04)%3#M(3TU%.E53
M00T*55),.FAT=' Z+R]W=W<N9V5O8VET:65S+F-O;2]3:6QI8V]N5F%L;&5Y
M+TAE:6=H=',O-S4S-2\-"D5-04E,.U!2148[24Y415).150Z:F]H;G-T;VXM
M:F%M97- =7-A+FYE= T*4D56.C$Y.3DP,S$R5# T,# Q,EH-"D5.1#I60T%2
#1 T*
`
end