C盘清理工具

作者在 2007-08-28 07:21:00 发布以下内容

今天整理了一下电脑,看到了这个不错的代码,特地贴出来以供大家交流.

把下面的代码放入一个记事本中,然后改名为.bat文件格式就可以了.

(也就是说将下面这些代码复制到一个记事本a.txt中,然后改名为a.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%\cookies\*.*

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 清除系统垃圾文件完成,感谢您支持菊花论坛!

echo. & pause

日记 | 阅读 11496 次
文章评论,共1条
vfdff
2008-04-12 06:49
1
强行删除,可能会威胁的
游客请输入验证码
浏览252399次