Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Chainski authored Mar 28, 2024
1 parent 52857a3 commit 7b23bf0
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion WindowsCleanerUtility.bat
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,16 @@ echo [Cleaning] Temporary Files && color c
timeout /t 2 /nobreak >nul
echo.

:: Empties the RecycleBin
del /s /q /f %systemdrive%\$Recycle.bin\* >nul 2>nul

del /s /f /q %windir%\temp\*.* >nul 2>nul
del /s /f /q %windir%\Prefetch\*.* >nul 2>nul
del /s /f /q %LOCALAPPDATA%\Microsoft\Windows\Caches\*.* >nul 2>nul
del /s /f /q %windir%\SoftwareDistribution\Download\*.* >nul 2>nul
del /s /f /q %programdata%\Microsoft\Windows\WER\Temp\*.* >nul 2>nul
del /s /f /q %HomePath%\AppData\LocalLow\Temp\*.* >nul 2>nul
del /f /s /q %systemdrive%\*.tmp 2>nul >nul
rd /s /f /q %windir%\history 2>nul >nul
rd /s /f /q %windir%\cookies 2>nul >nul

Expand All @@ -144,6 +148,10 @@ timeout /t 2 /nobreak >nul
echo.

REM Delete Log Files
del /f /s /q %systemdrive%\*.log >nul 2>nul
del /f /s /q %systemdrive%\*.old >nul 2>nul
del /f /s /q %systemdrive%\*.trace >nul 2>nul
del /f /s /q %windir%\*.bak >nul 2>nul
del /s /f /q %windir%\Logs\CBS\CbsPersist*.log >nul 2>nul
del /s /f /q %windir%\Logs\MoSetup\*.log >nul 2>nul
del /s /f /q %windir%\Panther\*.log >nul 2>nul
Expand All @@ -152,6 +160,10 @@ del /s /f /q %localappdata%\Microsoft\Windows\WebCache\*.log >nul 2>nul
rd /s /f /q %localappdata%\Microsoft\Windows\INetCache\*.log >nul 2>nul


:: Remove Event Logs.
wevtutil.exe cl Application
wevtutil.exe cl System

echo [Cleaning] Remnant Driver Files && color 9
timeout /t 2 /nobreak >nul
echo.
Expand Down Expand Up @@ -239,4 +251,4 @@ goto menu
:github
cls
start %github-link%
goto menu
goto menu

0 comments on commit 7b23bf0

Please sign in to comment.