******a batch script that cleans up your computer. ****** @echo off :mainmenu cls echo ********************* echo * Bruce's CleanUp Menu * echo * Please press 1 2 or 3 echo ********************* echo * 1 = Start CleanUp * echo * 2 = About this program * echo * 3 = Quit * echo ********************* choice /C:123 >nul if %errorlevel% equ 1 goto start if %errorlevel% equ 2 goto about if %errorlevel% equ 3 goto exit REM closes the program :quit exit /b REM starts the clean up :start @echo off echo Cleaning system junk files, please wait… REM displays a line of text del /f /s /q %systemdrive%\*.tmp del /f /s /q %systemdrive%\*._mp del /f /s /q %systemdrive%\*.log del /f /s /q %systemdrive%\*.gid del /f /s /q %systemdrive%\*.chk del /f /s /q %systemdrive%\*.old del /f /s /q %systemdrive%\recycled\*.* del /f /s /q %windir%\*.bak del /f /s /q %windir%\prefetch\*.* rd /s /q %windir%\temp & md %windir%\temp del /f /q %userprofile%\cookies\*.* del /f /q %userprofile%\recent\*.* del /f /s /q “%userprofile%\Local Settings\Temporary Internet Files\*.*” del /f /s /q “%userprofile%\Local Settings\Temp\*.*” del /f /s /q “%userprofile%\recent\*.*” REM /f: force deleting of read-only files REM /s: Delete specified files from all subdirectories. REM /q: Quiet mode, do not ask if ok to delete on global wildcard REM %systemdrive%: drive upon which the system folder was placed REM %windir%: a regular variable and is defined in the variable store as %SystemRoot%. REM %userprofile%: variable to find the directory structure owned by the user running the process echo Cleaning of junk files is finished! REM displays a line of text echo. & pause REM echo.: Displays a single blank line on the screen. REM pause: This will stop execution of the batch file until someone presses "any key" REM shows info :about echo ********************* echo * If you didn't right click this program * echo * and run as administrator * echo * It will not work correctly echo ** echo * This batch file deletes most * echo * common temp files stored on * echo * the windows install directory * echo ** echo * 03/31/2016* pause goto mainmenu