AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Script for deleting all the temp files

 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
a_clauss



Joined: 03 Feb 2005
Posts: 10

PostPosted: Fri Feb 04, 2005 11:35 am    Post subject: Script for deleting all the temp files Reply with quote

Hello to everybody

My first script - Non_german users should adjust the paths
Code:
;clears all (temp) files in the listed directories, except the one's which are in use
dirs = %A_winDir%\Temp\*.*,%userprofile%\Lokale Einstellungen\Temp\*.*,C:\Temp\*.*,%userprofile%\Recent\*.lnk,%userprofile%\Cookies\*.txt,%userprofile%\Lokale Einstellungen\Temporary Internet Files\*.* ;all code above is on ONE line
Loop,parse,dirs,`,
{
   
IfExist,%A_LoopField%
   {
   Loop,%A_LoopField%,1,1
   FileSetAttrib,-H-S-R,%A_LoopField%,1,1
   }
   {
   Loop,%A_LoopField%,1,1
   FileRemoveDir,%A_LoopFileFullPath%,1
   FileDelete,%A_LoopField%
   }
}
FileRecycleEmpty

It clears everything except the firefox cache. This can be done in the Firefox settings.

Something I forgot?

Andy
Back to top
View user's profile Send private message
jonny



Joined: 13 Nov 2004
Posts: 2951
Location: Minnesota

PostPosted: Fri Feb 04, 2005 2:34 pm    Post subject: Reply with quote

Firefox users who like this concept might be interested in the x extension, otherwise known as Paranoia. It adds a toolbar button that can clear any and all browsing records.
Back to top
View user's profile Send private message
a_clauss



Joined: 03 Feb 2005
Posts: 10

PostPosted: Fri Feb 04, 2005 2:45 pm    Post subject: ups Reply with quote

overlooked this one

Thanks for the info - I will install it - My middle name is Paranoia Laughing

Andy
Back to top
View user's profile Send private message
Bernd
Guest





PostPosted: Fri May 13, 2005 1:16 pm    Post subject: Reply with quote

A very helpfull script. I have only one little problem: All directories are empty beside this one:

Temporary Internet Files\*.*

By hand it is possible to delete the files of this directory. Have you an idea about the reason? I use WIN2000 and Internet Explorer.

Bernd
Back to top
a_clauss



Joined: 03 Feb 2005
Posts: 10

PostPosted: Fri May 13, 2005 2:03 pm    Post subject: temp Reply with quote

Hallo Bernd

sind im Verzeichnis Dateien und Ordner oder die *.dat

Hello Bernd

are there only the *.dat or any other files and / or directories?

Andy
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group