在桌面上点鼠标右键,选择新建一个“记事本”或“文本文档”,把下面的字复制进去,点“另存为”,把文件名定为“清除系统lj.bat”就完成,记住后缀名一定要是.bat,好ok了!你的垃圾清除器就这样制作成功了!双击它就能很快地清理垃圾文件,大约一分钟不到。
@echo
off
echo
正在清除系统垃圾文件,请稍等......
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
清除系统垃圾完成!
浏览器缓存(browser
caching)是为了节约网络的资源加速浏览,浏览器在用户磁盘上对最近请求过的文档进行存储,当访问者再次请求这个页面时,浏览器就可以从本地磁盘显示文档,这样就可以加速页面的阅览。但如果积累太多会导致电脑内产生垃圾文件。
@echo off
echo 清空IE临时文件目录...
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "%temp%\*.*"
echo 清除系统完成!
echo. & pause
@echo off
for /f %%a in ("%userprofile%\Local Settings\Temporary Internet Files\*.*") do (del %%a /f /q)