打印

[交流] 一个600多字节的自建工具有这么好的用处

0

一个600多字节的自建工具有这么好的用处

相信大家对于系统运行久了产生大量的无效链接快捷方式是知道的,但是很多软件都只是针对病毒木马进行清除,对于系统垃圾就比较漠视,有的软件清除是清除了,但是删除了系统的重要文件搞到小问题不断,所以在此奉献一个小技巧,希望能帮到大家。

文件名:一键清除系统垃圾.bat   

人格保证 绝对无毒 懂点命令的朋友都知道这个命令针对的是什么

单击鼠标右键,选择新建一个“文本文档”,把下面红色部分复制进去,点“另存为”,“保存类型”选为“所有文件”,把文件名定为“ 清除系统垃圾.bat ”就完成,记住后缀名一定要是 bat ,然后把它移到一个您想要保存的目录,OK了!你的垃圾清除器就这样制作成功了!双击它就能很快地清理垃圾文件,大约一分钟不到。



@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


文章来源:转载

TOP

当前时区 GMT+8, 现在时间是 2025-3-22 03:48