时 间 记 忆
最 新 评 论
专 题 分 类
最 新 日 志
最 新 留 言
搜 索
用 户 登 录
友 情 连 接
博 客 信 息


 
 
   
 
 
安全清除你的c盘垃圾文件
[ 2008-4-16 14:02:00 | By: 陈晓坡 ]
 
感觉很实用,所以记录下来.
使用方法:把如下的代码写到一个文本文件当中,然后把其后缀改为.bat
最后,双击它,自动清楚垃圾文件.
代码如下

@echo off
echo 正在清除系统垃圾文件,请稍等
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%\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\*.*"
echo 清除系统LJ完成!
echo. & pause 
 
 

发表评论:

    大名:
    密码: (游客无须输入密码)
    主页:
    标题:
 
     
   
     
Powered by Oblog.