Sunday, August 23, 2009

Batch File for Clearing Temporary files

Friends, you can clear the temp folder from windows with this batch file,

Just copy this into a notepad and goto file menu select saveas, give the any name with extension .bat

Just run this.

@echo off
del /Q c:\WINDOWS\Temp
cd\\
cd C:\Documents and Settings\%username%\Local Settings\
rmdir /S/Q Temp
echo Deleting Files
echo File Deleted
mkdir Temp
exit

No comments: