04 April 2008

Clear junk and temp files from the computer

Copy the below given code in to notepad and save as "clear.bat". Now copy the batch file into the Startup folder. It will run at windows Startup and clear all the temp files.
===============<Start>====================
@echo off
@Title [Vijay] cleaning temp files
@cd\
@echo CLEANING TEMP files
@del /s/q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
@rd /s/q "%userprofile%\Local Settings\Temp"
@md "%userprofile%\Local Settings\Temp"
@rd /s/q "%userprofile%\Local Settings\History"
@del /s/q "%userprofile%\Recent\*.*"
@del /s/q "C:\*.tmp"
@del /s/q "D:\*.tmp"
@del /s/q "E:\*.tmp"

@echo SUCCESSFULLY Cleaned.....
==================<End>==================

~~~~~~~~~~~~~~~~~~~~~
Ragards..

Vijay