Britec Tech Support Forum

Full Version: Clean.bat
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Wanted to share this but make a .bat file and run this and you can clean a lot of logs. Really helpful stuff. My friend did this and it deleted a file important for a rootkit to run and his antivirus finally detected it, just a warning.
Just copy code and place in notepad and renameĀ Clean.bat
Code:
@echo off
del /s /f /q c:\windows\temp\*.*
rd /s /q c:\windows\temp
md c:\windows\temp
del /s /f /q C:\WINDOWS\Prefetch
del /s /f /q %temp%\*.*
rd /s /q %temp%
md %temp%
deltree /y c:\windows\tempor~1
deltree /y c:\windows\temp
deltree /y c:\windows\tmp
deltree /y c:\windows\ff*.tmp
deltree /y c:\windows\history
deltree /y c:\windows\cookies
deltree /y c:\windows\recent
deltree /y c:\windows\spool\printers
del c:\WIN386.SWP
cls