@echo off title Windows System Cleaner color 0E :: Administrator check net session >nul 2>&1 if %errorLevel% neq 0 ( echo ======================================== echo ERROR: Administrator rights required! echo ======================================== echo. echo Please run as Administrator echo. pause exit /b 1 ) cls echo ======================================== echo WINDOWS SYSTEM CLEANER echo ======================================== echo. echo Select option: echo [1] Standard Clean (Recommended) echo [2] Full Clean (including Restore Points) echo [3] Exit echo. set /p choice="Enter 1, 2 or 3: " if "%choice%"=="3" exit /b 0 if "%choice%"=="2" goto FullClean if "%choice%"=="1" goto StandardClean echo Invalid choice! pause exit /b 1 :StandardClean cls echo ======================================== echo STANDARD CLEAN echo ======================================== echo. echo [1/6] Flushing DNS cache... ipconfig /flushdns >nul 2>&1 echo Done. echo [2/6] Cleaning Prefetch... del /q /f /s %SystemRoot%\Prefetch\*.* 2>nul echo Done. echo [3/6] Cleaning Windows Temp... del /q /f /s C:\Windows\Temp\*.* 2>nul for /d %%i in (C:\Windows\Temp\*) do rd /s /q "%%i" 2>nul echo Done. echo [4/6] Cleaning User Temp... del /q /f /s %temp%\*.* 2>nul for /d %%i in (%temp%\*) do rd /s /q "%%i" 2>nul echo Done. echo [5/6] Cleaning Internet Cache... del /q /f /s "%userprofile%\AppData\Local\Microsoft\Windows\INetCache\*.*" 2>nul echo Done. echo [6/6] Cleaning Windows Update Cache... del /q /f /s "C:\Windows\SoftwareDistribution\Download\*.*" 2>nul echo Done. goto Done :FullClean cls echo ======================================== echo FULL CLEAN echo ======================================== echo. echo [1/7] Flushing DNS cache... ipconfig /flushdns >nul 2>&1 echo Done. echo [2/7] Cleaning Prefetch... del /q /f /s %SystemRoot%\Prefetch\*.* 2>nul echo Done. echo [3/7] Cleaning Windows Temp... del /q /f /s C:\Windows\Temp\*.* 2>nul for /d %%i in (C:\Windows\Temp\*) do rd /s /q "%%i" 2>nul echo Done. echo [4/7] Cleaning User Temp... del /q /f /s %temp%\*.* 2>nul for /d %%i in (%temp%\*) do rd /s /q "%%i" 2>nul echo Done. echo [5/7] Cleaning Internet Cache... del /q /f /s "%userprofile%\AppData\Local\Microsoft\Windows\INetCache\*.*" 2>nul echo Done. echo [6/7] Cleaning Windows Update Cache... del /q /f /s "C:\Windows\SoftwareDistribution\Download\*.*" 2>nul echo Done. echo [7/7] Deleting old System Restore Points... vssadmin delete shadows /all /quiet >nul 2>&1 echo Done. goto Done :Done echo. echo ======================================== echo CLEANING COMPLETED SUCCESSFULLY! echo ======================================== echo. echo It is recommended to restart your computer. echo. pause