AutoHotkey Community

It is currently May 26th, 2012, 12:20 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: February 4th, 2005, 12:35 pm 
Offline

Joined: February 3rd, 2005, 12:05 pm
Posts: 10
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 4th, 2005, 3:34 pm 
Offline

Joined: November 13th, 2004, 4:08 am
Posts: 2951
Location: Minnesota
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: ups
PostPosted: February 4th, 2005, 3:45 pm 
Offline

Joined: February 3rd, 2005, 12:05 pm
Posts: 10
overlooked this one

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

Andy


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 13th, 2005, 2:16 pm 
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


Report this post
Top
  
Reply with quote  
 Post subject: temp
PostPosted: May 13th, 2005, 3:03 pm 
Offline

Joined: February 3rd, 2005, 12:05 pm
Posts: 10
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


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: bbwht, Bing [Bot], MSN [Bot], oldbrother and 53 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group