如何一键清理电脑系统垃圾?

我按照别人说的复制一些东西保存到新建的文本文档里.最后双击清除系统LJ.bat文本文档时都没什么反应.就弹出个框.这是怎么回事?

电脑使用一段时间后会有很多垃圾,影响电脑运行速度。制作“.bat”windows批处理文件,可以一键彻底清除系统垃圾,具体制作方法是:

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 清除系统LJ完成!

echo. & pause

粘贴到文本文档里,保存为“.bat”文件,这就是windows批处理文件;

3、为了今后方便使用,可以将其改名为“清除系统垃圾”;

4、双击该文件,即可自动彻底清除电脑系统垃圾,直至完成,按任意键退出。

温馨提示:答案为网友推荐,仅供参考
第1个回答  2017-04-01

第2个回答  2021-04-16

一键清理系统垃圾

第3个回答  2020-01-11
第4个回答  2013-11-10
第一步,在桌面上创建一个新记事本,也就是文本文档txt.

第二步,打开文本文档,将这些文字复制进去
@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 清除系统LJ完成!
echo. & pause

第三步, 点"文件"--"另存为". 然后把文件名改为"清除系统LJ.bat"
( 注意后缀名一定是".bat") , 其余的不用管,点保存就可以了.

最后,在桌面上打开"清除系统LJ",OK!本回答被网友采纳
相似回答