Command to clean ALL the temp files on your machine (even those in other accounts.) I usually set this to run at startup, and on a schedule of about once a week.
@echo off
for /D %%d in ("C:\Documents and Settings\*.*") do del /f /s /q "%%d\local settings\temp"
for /D %%d in ("C:\Documents and Settings\*.*") do del /f /s /q "%%d\local settings\temporary internet files"
for /D %%d in ("C:\Documents and Settings\*.*") do del /f /s /q "%%d\local settings\temporary internet files\content.IE5"
for /D %%d in ("C:\Documents and Settings\*.*") do del /f /s /q "%%d\local settings\history"
for /D %%d in ("C:\Documents and Settings\*.*") do del /f /s /q "%%d\local settings\cookies"
for /D %%d in ("C:\Documents and Settings\*.*") do del /f /s /q "%%d\cookies"
for /D %%d in ("C:\Documents and Settings\*.*") do del /f /s /q "%%d\UserData"
for /D %%d in ("C:\Documents and Settings\*.*") do rd /q /s "%%d\local settings\temp"
for /D %%d in ("C:\Documents and Settings\*.*") do rd /q /s "%%d\local settings\temporary internet files"
for /D %%d in ("C:\Documents and Settings\*.*") do rd /q /s "%%d\local settings\temporary internet files\content.IE5"
for /D %%d in ("C:\Documents and Settings\*.*") do rd /q /s "%%d\local settings\history"
for /D %%d in ("C:\Documents and Settings\*.*") do rd /q /s "%%d\local settings\cookies"
for /D %%d in ("C:\Documents and Settings\*.*") do rd /q /s "%%d\cookies"
for /D %%d in ("C:\Documents and Settings\*.*") do rd /q /s "%%d\UserData"
del /f /s /q C:\WINDOWS\Temp\*.*
del /f /s /q C:\Temp\*.*
del /f /s /q C:\WINDOWS\Prefetch\*.*
for /D %%d in ("C:\windows\system32\config\*.*") do del /f /s /q "%%d\local settings\temp"
for /D %%d in ("C:\windows\system32\config\*.*") do del /f /s /q "%%d\local settings\temporary internet files"
for /D %%d in ("C:\windows\system32\config\*.*") do del /f /s /q "%%d\local settings\temporary internet files\content.IE5"
for /D %%d in ("C:\windows\system32\config\*.*") do rd /q /s "%%d\local settings\temp"
for /D %%d in ("C:\windows\system32\config\*.*") do rd /q /s "%%d\local settings\temporary internet files"
for /D %%d in ("C:\windows\system32\config\*.*") do rd /q /s "%%d\local settings\temporary internet files\content.IE5"

0 comments:
Post a Comment