如何清理系统垃圾代码,清理系统垃圾的代码。

下面给大家介绍一下如何清理系统垃圾代码

方法

打开新建的文本文档。

将代码下面的代码写入到文本文档中去。

@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\*.*"
d括el /f /s /q "%userprofile%\recent\*.*"
echo 清除系统垃款灯场齐费身用友利型超圾完成!
echo. & pause

选择此电脑打开。

选择上方查看。

在文件扩展名前面勾选。

右击该文本文档选择重命名。

将文件名的后缀改为bat,然后双击执行即可。

效果如下