系统临时文件过多,也就造成了更多的垃圾留在电脑里面了,下面的给大家介绍如何清除系统垃圾文件,
快速清除系统垃圾
。1.打开记事本。
2.将下面的横线内的代码复制到记事本中,另存为一个文件扩展名为.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
===================================================
3.以后,每次双击这个批处理文件的图标,都会将系统垃圾清除;也可将此批处理文件图标拖动并添加到“开始”→“程序”→“启动”中,这样,每次系统启动后,都会自动清除一次上次系统运行时所产生的系统垃圾,