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

[系统相关] [已解决]清理电脑垃圾的bat怎么写

本帖最后由 fanfande 于 2012-7-10 15:24 编辑

之前在网络上找到很多清理电脑垃圾的bat,
但是,看了一下很多是不全面的
比如
Application Data 文件夹里面有很多垃圾是清理不掉的,这些是temp软件缓存文件!
请问这个如何编写呢?

垃圾通常出现在如下路径:

C:\Documents and Settings\lu\Application Data\KuGou7\UpTemp
C:\Documents and Settings\lu\Application Data\Original\IETemply
C:\Documents and Settings\lu\Application Data\Meitu\KanKan\Temp
C:\Documents and Settings\lu\Application Data\SogouExplorer\Temp
C:\Documents and Settings\lu\Application Data\SogouExplorer\Bin\bse_temp
C:\Documents and Settings\lu\Application Data\SogouExplorer\Download\temp
C:\Documents and Settings\lu\Application Data\Kingsoft\kclear\temp
C:\Documents and Settings\lu\Application Data\Meitu\KanKan\Temp
C:\Documents and Settings\lu\Application Data\Tencent\QPlus\temp
C:\Documents and Settings\lu\Application Data\Tencent\QQ\AuTemp
C:\Documents and Settings\lu\Application Data\Tencent\QQ\STemp
C:\Documents and Settings\lu\Application Data\Tencent\QQ\Temp
C:\Documents and Settings\lu\Application Data\Macromedia\Dreamweaver 8\Configuration\Temp

通过bat运行,指定删除以上路径文件夹的内容!谢谢!
有创新,多创新;无创新,多模仿;无模仿,多坚持

  1. del /f /s /q "%systemdrive%\Documents and Settings\lu\Application Data\KuGou7\UpTemp\*.*"
  2. del /f /s /q "%systemdrive%\Documents and Settings\lu\Application Data\Original\IETemply\*.*"
  3. del /f /s /q "%systemdrive%\Documents and Settings\lu\Application Data\Meitu\KanKan\Temp\*.*"
  4. del /f /s /q "%systemdrive%\Documents and Settings\lu\Application Data\SogouExplorer\Temp\*.*"
  5. del /f /s /q "%systemdrive%\Documents and Settings\lu\Application Data\SogouExplorer\Bin\bse_temp\*.*"
  6. del /f /s /q "%systemdrive%\Documents and Settings\lu\Application Data\SogouExplorer\Download\temp\*.*"
  7. del /f /s /q "%systemdrive%\Documents and Settings\lu\Application Data\Kingsoft\kclear\temp\*.*"
  8. del /f /s /q "%systemdrive%\Documents and Settings\lu\Application Data\Meitu\KanKan\Temp\*.*"
  9. del /f /s /q "%systemdrive%\Documents and Settings\lu\Application Data\Tencent\QPlus\temp\*.*"
  10. del /f /s /q "%systemdrive%\Documents and Settings\lu\Application Data\Tencent\QQ\AuTemp\*.*"
  11. del /f /s /q "%systemdrive%\Documents and Settings\lu\Application Data\Tencent\QQ\STemp\*.*"
  12. del /f /s /q "%systemdrive%\Documents and Settings\lu\Application Data\Tencent\QQ\Temp\*.*"
  13. del /f /s /q "%systemdrive%\Documents and Settings\lu\Application Data\Macromedia\Dreamweaver 8\Configuration\Temp\*.*"
复制代码

TOP

非常干净!谢谢,这个估计是最干净的版本了
有创新,多创新;无创新,多模仿;无模仿,多坚持

TOP

我用过,经典的代码

TOP

回复 4# wu4agan


    是不是说的就是以前流传的老的啊
有创新,多创新;无创新,多模仿;无模仿,多坚持

TOP

请论坛搜索清理垃圾。

TOP

win8都出来了, 看来大家还都是习惯于用xp系统~~~

TOP

回复 3# fanfande


    自己学会批处理才能根据实际情况写出最适合的代码

TOP

返回列表