Windows 10 清除文件

 

C:\Windows\SoftwareDistribution\Download

 

@echo off
echo 专门为windows10而写,因而更专业!按任意键清理您的系统垃圾!
echo                       清理C盘

set /p input=请选择(1)清理系统垃圾(2)专清腾讯垃圾(3)直接退出

if "%input%"=="1" goto one
if "%input%"=="2" goto two
if "%input%"=="3" goto three

:one 
del /f /s /q "%userprofile%\AppData\Local\Temp\*.*"
del /f /s /q "%userprofile%\AppData\Local\Microsoft\Windows\INetCache\IE\*.*"
del /f /s /q "%windir%\Offline Web Pages\*.*"
del /f /s /q "%userprofile%\AppData\Local\Steam\htmlcache\*.*"
del /f /s /q "%systemdrive%\*.old" 
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 "%windir%\SoftwareDistribution\download\*.*"
del /f /s /q "%windir%\Prefetch\*.*"
del /f /s /q "%userprofile%\AppData\Local\Microsoft\Windows\INetCookies\*.*"
del /f /s /q "%userprofile%\AppData\Local\Microsoft\Windows\INetCookies\Low\*.*"
pause&echo 系统垃圾清理完毕
exit

:two
TASKKILL /f /IM "Tencent TenioDL for Game.exe" 
TASKKILL /f /IM "QQMicroGameBoxTray.exe" 
TASKKILL /f /IM "QQMicroGameBoxService.exe" 
del /f /s /q "%userprofile%\AppData\Roaming\Tencent\QQMGBDownload\*.*"
del /f /s /q "%userprofile%\AppData\Local\Tencent\Cross\*.*"
del /f /s /q "%userprofile%\AppData\Roaming\Tencent\QQMicroGameBox\*.*"
del /f /s /q "%userprofile%\AppData\Roaming\Tencent\QQMiniGameBox\*.*"
del /f /s /q "%userprofile%\AppData\Roaming\Tencent\QQMiniDL\*.*"
del /f /s /q "%userprofile%\AppData\Roaming\Tencent\游戏人生cross\*.*"
del /f /s /q "%userprofile%\AppData\Local\Tencent\QQPet\*.*"
del /f /s /q "%systemdrive%\Program Files (x86)\Tencent\QQMicroGameBoxService\*.*"
del /f /s /q "%userprofile%\Roaming\Tencent\Logs\*.*"
del /f /s /q "%userprofile%\AppData\Roaming\Tencent\QQGAMETempest\Download\*.*"
del /f /s /q "%userprofile%\AppData\Roaming\Tencent\QQ\Temp\*.*"

pause&echo 腾讯垃圾清理完毕
exit

:three
exit

 

posted @ 2021-10-13 17:43  三瑞  阅读(434)  评论(0编辑  收藏  举报