How to make a "Clean" Bat File

1 message Options
Embed this post
Permalink
mase

How to make a "Clean" Bat File

Reply Threaded More More options
Print post
Permalink
Put this code in a blank notepad file, save as .cmd OR .bat

-------------------------------------------------------------------------------------------------------
@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
-------------------------------------------------------------------------------------------------------

What this basically does is delete your history, temp folder, cookies, etc. An easy way to clean you pc.