Tuneup.bat

:: Admin check net session >nul 2>&1 if %errorLevel% neq 0 ( echo [ERROR] This script requires Administrator privileges. echo Right-click tuneup.bat and select "Run as administrator". pause exit /b 1 )

:: ============================================ :: PHASE 1: DISK CLEANUP :: ============================================ call :log "Phase 1: Disk Cleanup Operations" call :log "----------------------------------"

call :log "[2/12] Deleting temporary files..." del /f /s /q "%temp%\*" >nul 2>&1 del /f /s /q "%windir%\temp\*" >nul 2>&1 del /f /s /q "%windir%\Prefetch\*" >nul 2>&1 call :log " Temp files removed." tuneup.bat

:: ============================================ :: PHASE 2: BROWSER CLEANUP :: ============================================ call :log "Phase 2: Browser Cache Cleanup" call :log "-------------------------------"

:: Chrome if exist "%localappdata%\Google\Chrome\User Data" ( call :log "[5/12] Clearing Chrome cache..." del /f /s /q "%localappdata%\Google\Chrome\User Data\Default\Cache\*" >nul 2>&1 del /f /s /q "%localappdata%\Google\Chrome\User Data\Default\Code Cache\*" >nul 2>&1 call :log " Chrome cache cleaned." ) :: Admin check net session >nul 2>&1 if

:: ============================================ :: PHASE 4: PERFORMANCE TWEAKS :: ============================================ call :log "Phase 4: Performance Optimizations" call :log "-----------------------------------"

call :log "[4/12] Cleaning Windows Update cache..." net stop wuauserv >nul 2>&1 del /f /s /q "%windir%\SoftwareDistribution\Download\*" >nul 2>&1 net start wuauserv >nul 2>&1 call :log " Update cache cleaned." :: Admin check net session &gt

:: ============================================ :: PHASE 5: PRIVACY & JUNK FILES :: ============================================ call :log "Phase 5: Privacy Cleanup" call :log "-------------------------"