Menu Bar

Monday, May 4, 2009

Temp file Removal script

Step 1.

Create a new text file.

Step 2.

@echo off

Echo "Preparing for deletion of TEMP files and Internet Cache"
Echo "Calculating Settings..."

Echo .
Echo "Deleting Temporary Files from your profile..."
del "%userprofile%\Local Settings\Temp\*.*" /s /q /f
Echo %ERRORLEVEL%


Echo .
Echo "Deleting Temporary Internet Files from your profile..."
del "%userprofile%\Local Settings\Temporary Internet Files\*.*" /s /q /f
Echo %ERRORLEVEL%
Echo Completed...
exit



[ copy this text to notepad file & save the file]




Step 3. Change the file extention from ".txt" to ".bat"


No comments: