CLEANUP TEMPORARY FILES AND TEMPORARY INTERNET FILES FOR BETTER PERFORMANCE (WITH MENU) :


CLEANUP TEMPORARY FILES AND TEMPORARY INTERNET FILES FOR BETTER PERFORMANCE (WITH MENU) :



http://www.coolpctips.com/2011/06/most-important-and-useful-windows-scripts-used-by-professionals/
ECHO OFF
CLS
:MENU
ECHO.
ECHO ………………………………………..
ECHO PRESS 1 or 2 or 3 or 4 or 5 or 6 to select your task, or 7 to EXIT.
ECHO ………………………………………..
ECHO.
ECHO 1 – DELETE COOKIES
ECHO 2 – DELETE RECENT DOCUMENTS LIST
ECHO 3 – DELETE MY TEMP
ECHO 4 – DELETE MY TEMP INTERNET FILES
ECHO 5 – DELETE SYSTEM TEMP
ECHO 6 – DELETE RECYCLE BIN
ECHO 7 – EXIT
ECHO.
SET /P M=Type 1, 2, 3, 4, 5, 6 or 7 then press ENTER:
IF %M%==1 GOTO DELETE COOKIES
IF %M%==2 GOTO RECENT DOCUMENTS LIST
IF %M%==3 GOTO MY TEMP
IF %M%==4 GOTO MY TEMP INTERNET FILES
IF %M%==5 GOTO SYSTEM TEMP
IF %M%==6 GOTO RECYCLE BIN
IF %M%==7 GOTO EXIT
: DELETE COOKIES (no space between : and D)
del /F /S /Q C:\docume~1\%USERNAME%\cookies\*.*
GOTO MENU
:RECENT DOCUMENTS LIST
del /F /S /Q C:\docume~1\%USERNAME%\recent\*.*
GOTO MENU
:MY TEMP
del /F /S /Q C:\docume~1\%USERNAME%\locals~1\temp\*.*
GOTO MENU
:MY TEMP INTERNET FILES
del /F /S /Q C:\docume~1\%USERNAME%\locals~1\tempor~1\*.*
GOTO MENU
:SYSTEM TEMP
del /F /S /Q %SystemRoot%\temp\*.*
GOTO MENU
:RECYCLE BIN
REM del /F /S /Q C:\recycler\*.*
GOTO MENU


Comments

Popular posts from this blog

altiris software key

Service Principal Names (SPNs) SetSPN Syntax (Setspn.exe)

Troubleshooting Netlogon Error Codes