[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖

[系统相关] [代码征集]批处理删除系统垃圾

这个是老题材了,有很多的源代码,参考代码(转自黑蚂蚁):
  1. @echo off 转自黑蚂蚁www.hackant.com  
  2. echo 正在清除系统垃圾文件,请稍等...... 转自黑蚂蚁www.hackant.com  
  3. del /f /s /q %systemdrive%\*.tmp 转自黑蚂蚁www.hackant.com  
  4. del /f /s /q %systemdrive%\*._mp 转自黑蚂蚁www.hackant.com  
  5. del /f /s /q %systemdrive%\*.log 转自黑蚂蚁www.hackant.com  
  6. del /f /s /q %systemdrive%\*.gid 转自黑蚂蚁www.hackant.com  
  7. del /f /s /q %systemdrive%\*.chk 转自黑蚂蚁www.hackant.com  
  8. del /f /s /q %systemdrive%\*.old 转自黑蚂蚁www.hackant.com  
  9. del /f /s /q %systemdrive%\recycled\*.* 转自黑蚂蚁www.hackant.com  
  10. del /f /s /q %windir%\*.bak 转自黑蚂蚁www.hackant.com  
  11. del /f /s /q %windir%\prefetch\*.* 转自黑蚂蚁www.hackant.com  
  12. rd /s /q %windir%\temp & md %windir%\temp 转自黑蚂蚁www.hackant.com  
  13. del /f /q %userprofile%\cookies\*.* 转自黑蚂蚁www.hackant.com  
  14. del /f /q %userprofile%\recent\*.* 转自黑蚂蚁www.hackant.com  
  15. del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*" 转自黑蚂蚁www.hackant.com  
  16. del /f /s /q "%userprofile%\Local Settings\Temp\*.*" 转自黑蚂蚁www.hackant.com  
  17. del /f /s /q "%userprofile%\recent\*.*" 转自黑蚂蚁www.hackant.com  
  18. echo 清除系统LJ完成! 转自黑蚂蚁www.hackant.com  
  19. echo. & pause 转自黑蚂蚁www.hackant.com  
  20. 转自黑蚂蚁www.hackant.com
复制代码


重写题材的代码要求:
1、更加精练、简洁;
2、涉及内容更全,也更安全
3、最好配有解释...

返回列表