:: Firefox if exist "%appdata%\Mozilla\Firefox\Profiles" ( call :log "[6/12] Clearing Firefox cache..." for /d %%i in ("%appdata%\Mozilla\Firefox\Profiles\*") do ( del /f /s /q "%%i\cache2\*" >nul 2>&1 del /f /s /q "%%i\startupCache\*" >nul 2>&1 ) call :log " Firefox cache cleaned." )
call :log "[3/12] Emptying Recycle Bin..." rd /s /q %systemdrive%\$Recycle.bin >nul 2>&1 call :log " Recycle Bin emptied."
:: ============================================ :: PHASE 5: PRIVACY & JUNK FILES :: ============================================ call :log "Phase 5: Privacy Cleanup" call :log "-------------------------" tuneup.bat
:: ============================================ :: PHASE 1: DISK CLEANUP :: ============================================ call :log "Phase 1: Disk Cleanup Operations" call :log "----------------------------------"
call :log "[9/12] Running SFC scan..." sfc /scannow >nul 2>&1 call :log " SFC scan completed." &1 net stop SysMain >
:: Edge if exist "%localappdata%\Microsoft\Edge\User Data" ( call :log "[7/12] Clearing Edge cache..." del /f /s /q "%localappdata%\Microsoft\Edge\User Data\Default\Cache\*" >nul 2>&1 call :log " Edge cache cleaned." )
:: ============================================ :: tuneup.bat - Advanced System Maintenance Script :: Author: System Utility :: Version: 3.2 :: Purpose: Clean, optimize, and repair Windows systems :: ============================================ &1 || cleanmgr /verylowdisk >
call :log "[12/12] Optimizing virtual memory and services..." wmic pagefileset set initialsize=4096,maxsize=8192 >nul 2>&1 net stop SysMain >nul 2>&1 sc config SysMain start= disabled >nul 2>&1 call :log " Virtual memory and services optimized."
:: ============================================ :: PHASE 2: BROWSER CLEANUP :: ============================================ call :log "Phase 2: Browser Cache Cleanup" call :log "-------------------------------"
:: ============================================ :: PHASE 3: SYSTEM HEALTH :: ============================================ call :log "Phase 3: System Health Checks" call :log "------------------------------"
call :log "[1/12] Running Windows Disk Cleanup (cleanmgr)..." cleanmgr /sagerun:1 >nul 2>&1 || cleanmgr /verylowdisk >nul 2>&1 call :log " Disk Cleanup completed."