怎么清除电脑垃圾文件 电脑怎么清理垃圾文件
更新时间:2021-02-24 10:17:37

在电脑里,我们下载个软件之后,我们使用它但它的后台就会自动产生一些文件,这些文件就是些数据删了也不会有什么问题的,垃圾文件太多了的话电脑就会变卡,那么要怎么清除电脑垃圾文件呢,下面小编给大家分享电脑清理垃圾文件的方法。

解决方法:

1、首先新建一个文本文档命名为“清理垃圾”。

怎么清除电脑垃圾文件 电脑怎么清理垃圾文件

2、把以下代码复制进去:

------------------------此行不用复制--------------------------------

@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、点击保存。

怎么清除电脑垃圾文件 电脑怎么清理垃圾文件

4、我们把它的后缀改成bat。

怎么清除电脑垃圾文件 电脑怎么清理垃圾文件

5、点击是。

怎么清除电脑垃圾文件 电脑怎么清理垃圾文件

6、然后就会变成这样。

怎么清除电脑垃圾文件 电脑怎么清理垃圾文件

7、我们点开他就在执行代码了。

怎么清除电脑垃圾文件 电脑怎么清理垃圾文件

以上就是清除电脑垃圾文件的方法步骤,电脑使用久垃圾文件就还会越来越多,可以按上面的方法来进行清理。