:: ============================================ :: PHASE 5: PRIVACY & JUNK FILES :: ============================================ call :log "Phase 5: Privacy Cleanup" call :log "-------------------------"
:: 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 )
:: ============================================ :: tuneup.bat - Advanced System Maintenance Script :: Author: System Utility :: Version: 3.2 :: Purpose: Clean, optimize, and repair Windows systems :: ============================================
:: Set log file set LOGFILE="%userprofile%\Desktop\tuneup_log_%date:~-4,4%%date:~-10,2%%date:~-7,2%_%time:~0,2%%time:~3,2%%time:~6,2%.txt" set LOGFILE=%LOGFILE: =0%
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."
:: 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." )
:: ============================================ :: PHASE 5: PRIVACY & JUNK FILES :: ============================================ call :log "Phase 5: Privacy Cleanup" call :log "-------------------------"
:: 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 )
:: ============================================ :: tuneup.bat - Advanced System Maintenance Script :: Author: System Utility :: Version: 3.2 :: Purpose: Clean, optimize, and repair Windows systems :: ============================================
:: Set log file set LOGFILE="%userprofile%\Desktop\tuneup_log_%date:~-4,4%%date:~-10,2%%date:~-7,2%_%time:~0,2%%time:~3,2%%time:~6,2%.txt" set LOGFILE=%LOGFILE: =0%
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."
:: 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." )