您的位置首页生活百科

如何清理系统垃圾文件

如何清理系统垃圾文件

的有关信息介绍如下:

如何清理系统垃圾文件

如何清理系统垃圾文件?

双击我的电脑,进入C:\Windows\Temp文件夹,将所有文件删除;

进入回收站,将所有文件清空;

新建文本文档,输入以下代码:

@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

点击文件——另存为,命名为“一键系统垃圾清理.bat”

双击一键系统垃圾清理.bat,开始自动清理垃圾文件;

清理完毕,按任意键退出。