找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 64|回复: 0

[使用技巧] 一个清除垃圾的bat

[复制链接] IP属地:广东省广州市
发表于 2024-6-14 15:36:00 | 显示全部楼层 |阅读模式

  1. @echo off
  2. echo.
  3. echo 正在安全地自动清除垃圾文件……
  4. del /f /q %systemdrive%\*.tmp>nul 2>nul
  5. del /f /q %systemdrive%\*._mp>nul 2>nul
  6. del /f /q %systemdrive%\*.log>nul 2>nul
  7. del /f /q %systemdrive%\*.gid>nul 2>nul
  8. del /f /q %systemdrive%\*.chk>nul 2>nul
  9. del /f /q %systemdrive%\*.old>nul 2>nul
  10. del /f /q %windir%\*.bak>nul 2>nul
  11. del /f /q %windir%\*.tmp>nul 2>nul
  12. del /f /q %windir%\prefetch\*.*>nul 2>nul
  13. del /f /s /q %systemdrive%\recycled\*.*
  14. del /f /q "%ALLUSERSPROFILE%\Documents\DrWatson\*.*">nul 2>nul
  15. del /f /q "%USERPROFILE%\Cookies\*.txt">nul 2>nul
  16. del /f /q /s "%TEMP%\*.*">nul 2>nul
  17. del /f /q /s "%Systemroot%\Prefetch\*.*">nul 2>nul
  18. del /f /q "%USERPROFILE%\Recent\*.*">nul 2>nul
  19. del /f /q "%USERPROFILE%\Application Data\Microsoft\Office\Recent\*.lnk">nul 2>nul
  20. del /f /q /s "%USERPROFILE%\Local Settings\Temp\*.*">nul 2>nul
  21. rd /s /q %windir%\temp & md %windir%\temp>nul 2>nul
  22. if not exist %SystemRoot%\Minidump\NUL del /f /q /s %SystemRoot%\Minidump\*.*>nul 2>nul
  23. del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*">nul 2>nul
  24. echo 清除系统LJ完成!
  25. echo. & pause  
复制代码
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|西兴社区 ( 蜀ICP备2022005627号 )|网站地图

GMT+8, 2024-9-17 04:11 , Processed in 0.613138 second(s), 22 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表