使用BAT批处理文件快速删除系统垃圾的小技巧

时间:2022-06-04 05:22:01 阅读: 最新文章 文档下载
说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

今天为大家分享一个使用BAT批处理文件快速删除系统垃圾的小技巧,省得装各种软件垃圾没清理完又被装上第三方软件的垃圾!!感兴趣的朋友就一起通过文章来了解了解吧。

首先在桌面上建立一个记事本文件,输入以下命令,然后把文件保存为.bat后缀的文件,双击执行即可。
使用BAT批处理文件快速删除系统垃圾的小技巧

@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

本文来源:https://www.wddqw.com/8gBh.html