win10C盘清理小工具分享

代码如下:



@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 %systemdrive%\recycled\*.*

del /f /s /q %windir%\*.bak

del /f /s /q %windir%\prefetch\*.*

rd /s /q %windir%\temp & md %windir%\temp

del /f/s /q %userprofile%\cookies\*.*

del /f/s /q %userprofile%\recent\*.*

del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"

del /f /s /q "%userprofile%\Local Settings\Temp\*.*"

del /f /s /q "%userprofile%\recent\*.*"

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

它的原理是清理C盘中一些不需要文件,和C盘平时产生的垃圾,我么创建一个文本,将上述代码复制进入记事本中,然后保存改成bat格式,编码格式改为ANSI即可

 

猜你喜欢

转载自blog.csdn.net/ypf3442354429/article/details/129221164
今日推荐