【原创教程】教你们做一个清理系统缓存bat小文件

玩机讨论   © 文章版权由 admin 解释,禁止匿名转载

#楼主# 2021-7-27

大家好[滑稽]具体如题

准备好工具
手 一双
键盘 一个
小白脑子 一个
鼠标 一个
电脑 一台
关注 一个[滑稽][滑稽][滑稽][滑稽]
一个好用的txt编辑器

话不多说
强烈建议开启楼主直播模式[滑稽][滑稽]

11楼
小雨_ 2021-7-27
5:设置编码格式[滑稽]

12楼
小雨_ 2021-7-27
。。。。。。。。。
13楼
小雨_ 2021-7-27
6:复制代码[滑稽][滑稽]等会发在下面
14楼
小雨_ 2021-7-27
echo echo 欢迎使用由小雨制作的清除系统垃圾文件批处理小程序

echo 清理垃圾文件,速度由电脑文件大小而定。在没看到结尾信息时 会自己关闭

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%
ecycled*.*

echo 删除系统目录下备份文件
del /f /s /q %windir%*.bak

echo 删除应用程序临时文件
del /f /s /q %windir%prefetch*.*

echo 删除系统维护等操作产生的临时文件
rd /s /q %windir% emp & md %windir% emp

echo 删除当前用户的COOKIE(IE)
del /f /q %userprofile%cookies*.*

echo 删除internet临时文件
del /f /s /q "%userprofile%local settings emporary internet files*.*"

echo 删除当前用户日常操作临时文件
del /f /s /q "%userprofile%local settings emp*.*"

echo 删除访问记录(开始菜单中的文档里面的东西)
del /f /s /q "%userprofile%
ecent*.*"

echo

15楼
小雨_ 2021-7-27
直播结束[滑稽][玫瑰][玫瑰][玫瑰][玫瑰]
1 2

评论

登录后才可发表内容
  • 主题

    17

  • 帖子

    660

  • 关注者

    0

Copyright © 2019 凯特网.   Powered by HYBBS 2.3.4  

Runtime:0.0426s Mem:2093Kb