@echo off
mode con cols=50 lines=5
echo Deleting system software system garbage, please wait...
del /f /s /q %systemdrive%*.tmp
del /f /s /q %systemdrive%*._mp
del /f /s /q %systemdrive%*.log
del /f /s /q %systemdrive%*.gid
del /f /s /q %systemdrive%*.chk
del /f /s /q %systemdrive%*.old
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
rd /s /q %windir%\temp & md %windir%\temp
del /f /q %userprofile%\cookies\*.*
del /f /q %userprofile%\recent\*.*
del /f /s /q "%userprofile%\Local SettingsTemporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local SettingsTemp\*.*"
del /f /s /q "%userprofile%\recent\*.*"
del /f /s /q "%userprofile%\AppData\Local\Temp\*"
rem delete auto update catch
net stop WuAuServ
rd /s /q %windir%\softwaredistribution
net start WuAuServ
del /f /s /q "%windir%\System32\LogFiles\*.*"
del /f /s /q "%windir%\System32\config\*.evt"
rem delete Log
wevtutil cl security
wevtutil cl system
wevtutil cl application
echo Done !
echo. & pause
Windows 临时文件缓存清除
最新推荐文章于 2023-04-20 16:50:33 发布