This site uses cookies. In order to read how we handle cookies please click here. Click on this message to accept and hide.
Go to top

Tuneup.bat -

:: 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 "[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

:: 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% tuneup.bat

call :log "[9/12] Running SFC scan..." sfc /scannow >nul 2>&1 call :log " SFC scan completed." tuneup.bat

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

@echo off title Windows System Tune-up Utility color 0A