@echo off
Rem C: Drive
Rem This section requires clean.bat and del.exe
Rem This section gets temporary files the f off the drive
Rem ==============================================================
echo Before>c:\killer\report.txt
echo c:>>c:\killer\report.txt
dir c:|find "bytes free" >>c:\killer\report.txt
date /t>>c:\killer\report.txt
time /t>>c:\killer\report.txt
dir "c:\users" /w /x /a|find "
"|find /V ".." |find /V " .">temp.txt
for /F "tokens=1,2,3,4,5 delims= " %%i in (temp.txt) do (
echo %%m>>temp2.txt
)
type temp2.txt
for /F "tokens=1,2,3,4,5 delims=" %%i in (temp2.txt) do (
del "c:\users\%%i\local settings\temp\." /f /a /q /s
del "c:\users\%%i\local settings\temporary internet files\content.ie5\." /f /a /q /s
del "c:\users\%%i\local settings\temporary internet files\." /f /a /q
del "c:\users\%%i\AppData\Temp\." /f /a /q /s
del "c:\users\%%i\AppData\Local\Microsoft\Windows\Temporary Internet Files\." /f /a /q /s
del "c:\users\%%i\AppData\Local\Microsoft\Windows\Temporary Internet Files\content.ie5\." /f /a /q /s
del "c:\users\%%i\AppData\Local\Microsoft\Windows\INetCache" /f /a /q /s
rd "c:\users\%%i\local settings\temp" /q /s
rd "c:\users\%%i\local settings\temporary internet files\content.ie5" /q /s
rd "c:\users\%%i\local settings\temporary internet files" /q /s
rd "c:\users\%%i\AppData\Temp" /q /s
rd "c:\users\%%i\AppData\Local\Microsoft\Windows\Temporary Internet Files\content.ie5" /q /s
rd "c:\users\%%i\AppData\Local\Microsoft\Windows\Temporary Internet Files" /q /s
rd "c:\users\%%i\AppData\Local\Microsoft\Windows\INetCache" /q /s
md "c:\users\%%i\AppData\Local\Microsoft\Windows\Temporary Internet Files"
md "c:\users\%%i\AppData\Local\Microsoft\Windows\Temporary Internet Files\content.ie5"
md "c:\users\%%i\AppData\Temp"
md "c:\users\%%i\local settings\temp"
md "c:\users\%%i\local settings\temporary internet files"
md "c:\users\%%i\local settings\temporary internet files\content.ie5"
md "c:\users\%%i\AppData\Local\Microsoft\Windows\INetCache"
)
del temp.txt
del temp2.txt
del c:\windows\temp\. /f /a /q /s
del c:\winnt\temp\. /f /a /q /s
del c:\winnt\tmp\. /f /a /q /s
del "c:\winnt\downloaded program files\." /f /a /q /s
del "c:\windows\downloaded program files\." /f /a /q /s
del c:\temp\. /f /a /q /s
del c:\_restore\. /f /a /q /s
del c:\recycled\. /f /a /q /s
del c:\recycler\. /f /a /q /s
if exist c:\windows\temp goto cwt
goto ncwt
:cwt
rd c:\windows\temp /q /s
md c:\windows\temp
:ncwt
if exist "c:\windows\temporary internet files\content.ie5" goto cwti
goto ncwti
:cwti
rd "c:\windows\temporary internet files\content.ie5" /q /s
md "c:\windows\temporary internet files\content.ie5"
rd "c:\windows\temporary internet files" /q /s
md "c:\windows\temporary internet files"
:ncwti
if exist c:\winnt\temp goto cwinntt
goto ncwinntt
:cwinntt
rd c:\winnt\temp /q /s
md c:\winnt\temp
:ncwinntt
if exist c:\winnt\tmp goto cwinnttm
goto ncwinnttm
:cwinnttm
rd c:\winnt\tmp /q /s
md c:\winnt\tmp
:ncwinnttm
if exist c:\temp goto temp
goto ntemp
:temp
rd c:\temp /q /s
md c:\temp
:ntemp
if exist c:\_restore goto crestore
goto ncrestore
:crestore
rd c:\_restore /q /s
md c:\_restore
:ncrestore
if exist c:\recycled goto crecy
goto ncrecy
:crecy
rd c:\recycled /q /s
md c:\recycled
:ncrecy
if exist c:\recycler goto crecyc
goto ncrecyc
:crecyc
rd c:\recycler /q /s
md c:\recycler
:ncrecyc
:clean$
rd c:\windows\$hf_mig$ /q /s
rd c:\windows\$NtUninstallKB918118$ /q /s
rd c:\windows\$NtUninstallKB924667$ /q /s
rd c:\windows\$NtUninstallKB925902$ /q /s
rd c:\windows\$NtUninstallKB926436$ /q /s
rd c:\windows\$NtUninstallKB927779$ /q /s
rd c:\windows\$NtUninstallKB927802$ /q /s
rd c:\windows\$NtUninstallKB927891$ /q /s
rd c:\windows\$NtUninstallKB928090$ /q /s
rd c:\windows\$NtUninstallKB928255$ /q /s
rd c:\windows\$NtUninstallKB928843$ /q /s
rd c:\windows\$NtUninstallKB929123$ /q /s
rd c:\windows\$NtUninstallKB929338$ /q /s
rd c:\windows\$NtUninstallKB929399$ /q /s
rd c:\windows\$NtUninstallKB929969$ /q /s
rd c:\windows\$NtUninstallKB930178$ /q /s
rd c:\windows\$NtUninstallKB930916$ /q /s
rd c:\windows\$NtUninstallKB931261$ /q /s
rd c:\windows\$NtUninstallKB931768$ /q /s
rd c:\windows\$NtUninstallKB931784$ /q /s
rd c:\windows\$NtUninstallKB931836$ /q /s
rd c:\windows\$NtUninstallKB932168$ /q /s
rd c:\windows\$NtUninstallKB933566$ /q /s
rd c:\windows\$NtUninstallKB935839$ /q /s
rd c:\windows\$NtUninstallKB935840$ /q /s
rd c:\windows\$NtUninstallKB936357$ /q /s
rd c:\windows\$NtUninstallKB939373$ /q /s
rd c:\windows\$MSI31Uninstall_KB893803v2$ /q /s
rd c:\windows\$NtUninstallbasecsp$ /q /s
rd c:\windows\$NtUninstallKB873339$ /q /s
rd c:\windows\$NtUninstallKB885835$ /q /s
rd c:\windows\$NtUninstallKB885836$ /q /s
rd c:\windows\$NtUninstallKB886185$ /q /s
rd c:\windows\$NtUninstallKB888302$ /q /s
rd c:\windows\$NtUninstallKB890859$ /q /s
rd c:\windows\$NtUninstallKB891122$ /q /s
rd c:\windows\$NtUninstallKB891781$ /q /s
rd c:\windows\$NtUninstallKB893756$ /q /s
rd c:\windows\$NtUninstallKB894391$ /q /s
rd c:\windows\$NtUninstallKB896344$ /q /s
rd c:\windows\$NtUninstallKB896358$ /q /s
rd c:\windows\$NtUninstallKB896423$ /q /s
rd c:\windows\$NtUninstallKB896424$ /q /s
rd c:\windows\$NtUninstallKB896428$ /q /s
rd c:\windows\$NtUninstallKB898458$ /q /s
rd c:\windows\$NtUninstallKB898461$ /q /s
rd c:\windows\$NtUninstallKB899587$ /q /s
rd c:\windows\$NtUninstallKB899591$ /q /s
rd c:\windows\$NtUninstallKB900485$ /q /s
rd c:\windows\$NtUninstallKB900725$ /q /s
rd c:\windows\$NtUninstallKB901017$ /q /s
rd c:\windows\$NtUninstallKB901214$ /q /s
rd c:\windows\$NtUninstallKB902400$ /q /s
rd c:\windows\$NtUninstallKB904706$ /q /s
rd c:\windows\$NtUninstallKB904942$ /q /s
rd c:\windows\$NtUninstallKB905414$ /q /s
rd c:\windows\$NtUninstallKB905749$ /q /s
rd c:\windows\$NtUninstallKB908519$ /q /s
rd c:\windows\$NtUninstallKB908531$ /q /s
rd c:\windows\$NtUninstallKB910437$ /q /s
rd c:\windows\$NtUninstallKB911280$ /q /s
rd c:\windows\$NtUninstallKB911562$ /q /s
rd c:\windows\$NtUninstallKB911567$ /q /s
rd c:\windows\$NtUninstallKB911927$ /q /s
rd c:\windows\$NtUninstallKB912919$ /q /s
rd c:\windows\$NtUninstallKB913580$ /q /s
rd c:\windows\$NtUninstallKB914388$ /q /s
rd c:\windows\$NtUninstallKB914389$ /q /s
rd c:\windows\$NtUninstallKB915865$ /q /s
rd c:\windows\$NtUninstallKB916595$ /q /s
rd c:\windows\$NtUninstallKB917344$ /q /s
rd c:\windows\$NtUninstallKB917422$ /q /s
rd c:\windows\$NtUninstallKB917734_WMP10$ /q /s
rd c:\windows\$NtUninstallKB917953$ /q /s
rd c:\windows\$NtUninstallKB918439$ /q /s
rd c:\windows\$NtUninstallKB919007$ /q /s
rd c:\windows\$NtUninstallKB920213$ /q /s
rd c:\windows\$NtUninstallKB920213_0$ /q /s
rd c:\windows\$NtUninstallKB920214$ /q /s
rd c:\windows\$NtUninstallKB920342$ /q /s
rd c:\windows\$NtUninstallKB920670$ /q /s
rd c:\windows\$NtUninstallKB920683$ /q /s
rd c:\windows\$NtUninstallKB920685$ /q /s
rd c:\windows\$NtUninstallKB920872$ /q /s
rd c:\windows\$NtUninstallKB921398$ /q /s
rd c:\windows\$NtUninstallKB922582$ /q /s
rd c:\windows\$NtUninstallKB922616$ /q /s
rd c:\windows\$NtUninstallKB922760$ /q /s
rd c:\windows\$NtUninstallKB922819$ /q /s
rd c:\windows\$NtUninstallKB923191$ /q /s
rd c:\windows\$NtUninstallKB923414$ /q /s
rd c:\windows\$NtUninstallKB923694$ /q /s
rd c:\windows\$NtUninstallKB923723$ /q /s
rd c:\windows\$NtUninstallKB923980$ /q /s
rd c:\windows\$NtUninstallKB924191$ /q /s
rd c:\windows\$NtUninstallKB924270$ /q /s
rd c:\windows\$NtUninstallKB924496$ /q /s
rd c:\windows\$NtUninstallKB925398_WMP64$ /q /s
rd c:\windows\$NtUninstallKB925454$ /q /s
rd c:\windows\$NtUninstallKB925486$ /q /s
rd c:\windows\$NtUninstallKB925876$ /q /s
rd c:\windows\$NtUninstallKB926239$ /q /s
rd c:\windows\$NtUninstallKB926255$ /q /s
rd c:\windows\$NtUninstallMSCompPackV1$ /q /s
rd c:\windows\$NtUninstallWMFDist11$ /q /s
rd c:\windows\$NtUninstallwmp11$ /q /s
rd c:\windows\$NtUninstallWudf01000$ /q /s
rd c:\windows\$NtUninstallKB887472$ /q /s
rd c:\windows\$NtUninstallKB902344$ /q /s
rd c:\windows\$NtUninstallKB911564$ /q /s
rd c:\windows\$NtUninstallKB917734_WMP9$ /q /s
rd c:\windows\$NtUninstallKB923689$ /q /s
rd c:\windows\$NtUninstallKB925720$ /q /s
rd c:\windows\$NtUninstallKB928090_0$ /q /s
rd c:\windows\$NtUninstallWIC$ /q /s
rd c:\windows\$NtServicePackUninstallIDNMitigationAPIs$ /q /s
rd c:\windows\$NtServicePackUninstallNLSDownlevelMapping$ /q /s
rd c:\windows\$NtUninstallKB914440$ /q /s
rd c:\windows\$NtUninstallKB915800$ /q /s
rd c:\windows\$NtUninstallKB917013$ /q /s
rd c:\$RECYCLE.BIN /q /s
:ghost
del c:\pagefile.sys
del c:\hiberfil.sys
echo After>>c:\killer\report.txt
echo c:>>c:\killer\report.txt
dir c:|find "bytes free" >>c:\killer\report.txt
date /t>>c:\killer\report.txt
time /t>>c:\killer\report.txt
Rem ==============================================================
rem defrag c: -f -v>>c:\killer\report.txt