南锋2023-12-162023-12-16 (adsbygoogle = window.adsbygoogle || []).push({});
大家都知道在使用windows的时候,会产生大量的缓存文件,即很多人俗称的”垃圾”,但是个人觉得市面上大部分的清理软件都是流氓软件,使用这些软件有时候会让电脑更卡~
这里介绍博主自己用的一款小插件,主要作用就是清除windows系统在运行过程中,一些软件产生的缓存文件。 小白教程
首先新建一个.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
保存文件,修改文件后缀为.bat
,这里需要注意,在改后缀前要先设置显示文件后缀,不然是不会改变文件后缀的!!!
保存后鼠标左键双击该文件便可运行文件~