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