Download!Download Point responsive WP Theme for FREE!

Clear Yo Damn Cache!

Let’s just say I use Chrome to look at a lot of highres pictures, right? Yeah, so what, that’s my business.

I’ve noticed that Chrome slows down over time, but clearing out the cache fixes it. But clicking the menu button and doing it myself? Ain’t nobody got time fo’ dat!

So I asked Google about the situation, and Google pulled up a .bat script written by Aljaz – aly from stackoverflow that when executed either manually or on a schedule in Windows Task Scheduler deletes your Windows temp data, all user profile data lying around on your system, some other stuff, possibly your recycle bin, your browser file cache (but not passwords and cookies) for IE, Chrome and Firefox, and here it is.

If you don’t know what to do with this gobbledeegook below, .. never mind chief, stick to your routine.

Doug Simmons

[edit] If you copy/paste it as I just did your text editor might mix up the character encoding, so just download cleanup.bat or cleanup.bat.zip from us. First time takes a while to run but you’ll feel so fresh and so clean..

 

erase “%TEMP%\*.*” /f /s /q
for /D %%i in (“%TEMP%\*”) do RD /S /Q “%%i”

erase “%TMP%\*.*” /f /s /q
for /D %%i in (“%TMP%\*”) do RD /S /Q “%%i”

erase “%ALLUSERSPROFILE%\TEMP\*.*” /f /s /q
for /D %%i in (“%ALLUSERSPROFILE%\TEMP\*”) do RD /S /Q “%%i”

erase “%SystemRoot%\TEMP\*.*” /f /s /q
for /D %%i in (“%SystemRoot%\TEMP\*”) do RD /S /Q “%%i”

@rem Clear IE cache – (Deletes Temporary Internet Files Only)
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8
erase “%LOCALAPPDATA%\Microsoft\Windows\Tempor~1\*.*” /f /s /q
for /D %%i in (“%LOCALAPPDATA%\Microsoft\Windows\Tempor~1\*”) do RD /S /Q “%%i”

@rem Clear Google Chrome cache
erase “%LOCALAPPDATA%\Google\Chrome\User Data\*.*” /f /s /q
for /D %%i in (“%LOCALAPPDATA%\Google\Chrome\User Data\*”) do RD /S /Q “%%i”

@rem Clear Firefox cache
erase “%LOCALAPPDATA%\Mozilla\Firefox\Profiles\*.*” /f /s /q
for /D %%i in (“%LOCALAPPDATA%\Mozilla\Firefox\Profiles\*”) do RD /S /Q “%%i”

pause