电脑用得久了总会产生各式各样的垃圾文件,积少成多时,你会觉得系统运行的很慢。如何清理这些垃圾文件,还你一个清爽、轻快的操作系统呢?
这个问题可以将系统的虚拟程序文件移动其它盘符去,当你系统需要清理垃圾时,双“zol.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\*.*"
del /y %windir%\Prefetch\*.pf
echo 清除系统垃圾完成!
echo. & pause
%windir%\Prefetch文件夹,将扩展名为pf的文件全部删除,重启将扩展名为pf的文件全部删除,
把上面文字保存在“zol.bat”文件里面。以后双击它即可。