admin管理员组文章数量:1567017
代码如下:
@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即可
版权声明:本文标题:win10C盘清理小工具分享 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/dianzi/1725016230a1002484.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论