自己制作一个小程序清除系统的垃圾文件
有朋友是不是觉得用的久了的电脑速度就慢了,杀毒软件杀毒也没查找到病毒,那是因为电脑在打开某个文件或网页的时候会在系统缓存内保存一个文件,方便下次打开,提高打开速度.但是时间久了,这些文件就多了,导致系统运行速度会变的缓慢,这里我教大家自己动手制作一个小程序,此程序在删除系统垃圾外,不会伤害系统文件,绝对安全.首先在桌面新建一个文本文件内容如下:
@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
然后保存,然后在桌面上重命名此文件夹,改为"删除系统垃圾.bat"这样就OK啦,运行试试看.