当前位置:首页 > 精品软件

一键清理C盘垃圾文件

KingKong6个月前 (06-16)精品软件223

新建一个文本文档复制下面代码进去,

文件另存为:一键清理C盘垃圾文件.bat

双击执行即可,软件安全无毒,只清理垃圾文件,请放心使用!

@echo off 
echo ★☆ ★☆ ★☆ ★☆ ★☆★☆★☆ ★☆ ★☆ ★☆ ★☆★☆ ★☆ ★☆ ★☆ ★☆★☆ ★☆★
echo ★☆ ★☆ ★☆ ★☆ ★☆★☆★☆ ★☆ ★☆ ★☆ ★☆★☆ ★☆ ★☆ ★☆ ★☆★☆ ★☆★
echo.★☆                                              ☆★
echo.★☆                                              ☆★
echo.★☆   清理系统垃圾文件,请稍等......             ☆★
echo ★☆                                              ☆★
echo.★☆                                              ☆★
echo ★☆ ★☆ ★☆ ★☆ ★☆★☆★☆ ★☆ ★☆ ★☆ ★☆★☆ ★☆ ★☆ ★☆ ★☆★☆ ★☆★
echo ★☆ ★☆ ★☆ ★☆ ★☆★☆★☆ ★☆ ★☆ ★☆ ★☆★☆ ★☆ ★☆ ★☆ ★☆★☆ ★☆★
echo 软件安全无毒,只清理垃圾文件,请放心使用!

pause
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%\system32\dllcache\*.dll
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 s\*.* 
del /f /q %userprofile%\小甜饼s\*.* 
del /f /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 "D:\Local Settings\Temporary Internet Files\*.*" 
del /f /s /q "D:\Local Settings\Temp\*.*" 
sfc /purgecache '清理系统盘无用文件
defrag %systemdrive% -b '优化预读信息 
echo 清理垃圾文件,速度由电脑文件大小而定。在没看到结尾信息时 
echo 请勿关闭本窗口。 
echo 正在清除系统垃圾文件,请稍后...... 
echo 删除补丁备份目录 
RD %windir%\$hf_mig$ /Q /S 
echo 把补丁卸载文件夹的名字保存成2950800.txt 
dir %windir%\$NtUninstall* /a:d /b >%windir%\2950800.txt 
echo 从2950800.txt中读取文件夹列表并且删除文件夹 
for /f %%i in (%windir%\2950800.txt) do rd %windir%\%%i /s /q 
echo 删除2950800.txt 
del %windir%\2950800.txt /f /q 
echo 删除补丁安装记录内容(下面的del /f /s /q %systemdrive%\*.log已经包含删除此类文件) 
del %windir%\KB*.log /f /q 
echo 删除系统盘目录下临时文件 
del /f /s /q %systemdrive%\*.tmp 
echo 删除系统盘目录下临时文件 
del /f /s /q %systemdrive%\*._mp 
echo 删除系统盘目录下日志文件 
del /f /s /q %systemdrive%\*.log 
echo 删除系统盘目录下GID文件(属于临时文件,具体作用不详) 
del /f /s /q %systemdrive%\*.gid 
echo 删除系统目录下scandisk(磁盘扫描)留下的无用文件 
del /f /s /q %systemdrive%\*.chk 
echo 删除系统目录下old文件 
del /f /s /q %systemdrive%\*.old 
echo 删除回收站的无用文件 
del /f /s /q %systemdrive%\recycled\*.* 
echo 删除系统目录下备份文件 
del /f /s /q %windir%\*.bak 
echo 删除应用程序临时文件 
del /f /s /q %windir%\prefetch\*.* 
echo 删除系统维护等操作产生的临时文件 
rd /s /q %windir%\temp & md %windir%\temp 
echo 删除当前用户的COOKIE(IE) 
del /f /q %userprofile%\cookies\*.* 
echo 删除internet临时文件 
del /f /s /q "%userprofile%\local settings\temporary internet files\*.*" 
echo 删除当前用户日常操作临时文件 
del /f /s /q "%userprofile%\local settings\temp\*.*" 
echo 删除访问记录(开始菜单中的文档里面的东西) 
del /f /s /q "%userprofile%\recent\*.*" 
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 Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\recent\*.*"
echo 清除系统完成!-天降奇迹
echo 
echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★
echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★
echo ★☆                                                          ☆★
echo.★☆                                                          ☆★
echo.★☆                                                          ☆★
echo ★☆                                                          ☆★
echo ★☆                恭喜您!清理全部完成!                    ☆★
echo.★☆                                                          ☆★
echo ★☆                                                          ☆★
echo.★☆                                                          ☆★
echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★
echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★
echo. & pause
echo.

屏幕截图 2026-06-16 083009.png

“一键清理C盘垃圾文件” 的相关文章

UsbWriter--小巧的写盘工具

UsbWriter--小巧的写盘工具

usbwriter能够将任何磁盘映像文件iso之类的写入到USB驱动器,帮你轻松制作可启动的电脑维护盘…

PuTTY v0.70中文版

PuTTY v0.70中文版

PuTTY软件一贯都是重视电脑端通行的网络终端协议以及文件传输协议的统一改善处理,隶属于远程端控制的辅助类工具,不过都得先在首页上控制好所有数据参数信息,尤其是对接端口的测试运行,一般多轮验证以后才能获取规律结果,已经支撑到了最新的IPV6协议,相信会是网络传输的强力帮手。…

CH340G usb to ttl驱动

CH340G usb to ttl驱动

CH340G usb to ttl驱动…

Rufus-启动U盘制作工具

Rufus-启动U盘制作工具

官方下载:Rufus - 轻松创建 USB 启动盘…

群联PS2251-61主控U盘量产工具Phison MPALL v3.33.0C

群联PS2251-61主控U盘量产工具Phison MPALL v3.33.0C

群联PS2251-61主控U盘量产工具Phison MPALL v3.33.0C…

小马WIN7激活工具OEM 7F7 周年纪念版

小马WIN7激活工具OEM 7F7 周年纪念版

小马激活工具可以说是国内激活界的始祖,小马Windows 7 激活工具确实很牛逼,激活成功几率特别的高,小马OEM 7F7国内最早出现的 OEM 激活工具(小马Oem7系列版,2009年7月末开始发布)7月29日更新最后一个版本7F7 版本,不过需要注意的是现在小马早就没有做激活工具了,网上还什么小…

发表评论

访客

看不清,换一张

◎欢迎参与讨论,请在这里发表您的看法和观点。