Skip to content

Commit 7b23bf0

Browse files
authored
Add files via upload
1 parent 52857a3 commit 7b23bf0

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

WindowsCleanerUtility.bat

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,16 @@ echo [Cleaning] Temporary Files && color c
129129
timeout /t 2 /nobreak >nul
130130
echo.
131131

132+
:: Empties the RecycleBin
133+
del /s /q /f %systemdrive%\$Recycle.bin\* >nul 2>nul
134+
132135
del /s /f /q %windir%\temp\*.* >nul 2>nul
133136
del /s /f /q %windir%\Prefetch\*.* >nul 2>nul
134137
del /s /f /q %LOCALAPPDATA%\Microsoft\Windows\Caches\*.* >nul 2>nul
135138
del /s /f /q %windir%\SoftwareDistribution\Download\*.* >nul 2>nul
136139
del /s /f /q %programdata%\Microsoft\Windows\WER\Temp\*.* >nul 2>nul
137140
del /s /f /q %HomePath%\AppData\LocalLow\Temp\*.* >nul 2>nul
141+
del /f /s /q %systemdrive%\*.tmp 2>nul >nul
138142
rd /s /f /q %windir%\history 2>nul >nul
139143
rd /s /f /q %windir%\cookies 2>nul >nul
140144

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

146150
REM Delete Log Files
151+
del /f /s /q %systemdrive%\*.log >nul 2>nul
152+
del /f /s /q %systemdrive%\*.old >nul 2>nul
153+
del /f /s /q %systemdrive%\*.trace >nul 2>nul
154+
del /f /s /q %windir%\*.bak >nul 2>nul
147155
del /s /f /q %windir%\Logs\CBS\CbsPersist*.log >nul 2>nul
148156
del /s /f /q %windir%\Logs\MoSetup\*.log >nul 2>nul
149157
del /s /f /q %windir%\Panther\*.log >nul 2>nul
@@ -152,6 +160,10 @@ del /s /f /q %localappdata%\Microsoft\Windows\WebCache\*.log >nul 2>nul
152160
rd /s /f /q %localappdata%\Microsoft\Windows\INetCache\*.log >nul 2>nul
153161

154162

163+
:: Remove Event Logs.
164+
wevtutil.exe cl Application
165+
wevtutil.exe cl System
166+
155167
echo [Cleaning] Remnant Driver Files && color 9
156168
timeout /t 2 /nobreak >nul
157169
echo.
@@ -239,4 +251,4 @@ goto menu
239251
:github
240252
cls
241253
start %github-link%
242-
goto menu
254+
goto menu

0 commit comments

Comments
 (0)