首先,大家在桌面上建一个文本文档。
名字就叫“垃圾文件清理器”或者“系统垃圾文件清理器”
随便你叫什么都可以。叫“爱MM。就是爱MM!”也可以! - -#
然后输入以下代码
@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 清除系统LJ完成!
echo. & pause
注意:前面的空格去除掉。
好了!然后我们保存下。回到桌面。把刚才的文本改下名。有朋友要问了,为什么又要改名?刚才不是已经改了吗?刚才是改文件名。现在呢,我们来改文件后缀。把.txt。就是文本的后缀换成.bat就是批处理文件。然后它会弹出一个提示框。点确定以后就好了!现在大家看看是不是刚才的文本变了样子。恩。现在你打开它就会自动清理系统里的垃圾。
希望经常到我博客坐坐。
军火。




