win10一键清理系统垃圾文件

2025-12-03 04:56:28

1、在桌面上,右键,新建文本文档

2、输入以下代码:

@echo off

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

echo 本Bat作者为倦意,转载随意,请标明作者!

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

3、保存为.bat格式的文件即可

4、如果你嫌麻烦,这里有我自己写好的

链接: https://pan.baidu.com/s/1bpnM719 密码: w44i

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢