2023年6月21日发(作者:)

清理系统垃圾的批处理文件

新建TXT文本文档,保存为 系统清理.bat

右击 系统清理.bat 选择编辑,复制以下内容到文件中,保存

保存后双击运行。

@echo off

title Windows 系统无用文件清理

color 2E

echo -------------------------------------------

echo 开始进行系统清理

pause

cls

@echo off

del /f /s /q %systemdrive%*.tmp

del /f /s /q %systemdrive%*._mp

del /f /s /q %systemdrive%*.gid

del /f /s /q %systemdrive%*.chk

del /f /s /q %systemdrive%*.old

del /f /s /q %windir%*.bak

del /f /s /q %windir%prefetch*.*

rd /s /q %windir%temp & md %mindir%temp

del /f /s /q "%appdate%MicrosoftWindowscookies*.*"

del /f /s /q "%userprofile%Local SettingTemporary Internet Files*.*"

del /f /s /q "%userprofile%Local SettingTemp*.*"

rd /s /q "%userprofile%Local SettingsTemp" & md "%userprofile%Local SettingsTemp"

del /f /s /q "%appdata%MicrosoftWindowsRecent*.*"

@echo off

cls

color 2A

echo--------------------系统垃圾清理完成--------------------------

echo--------------------------------------------------------------

echo---------------------------退出-------------------------------

pause-----------------------

2023年6月21日发(作者:)

清理系统垃圾的批处理文件

新建TXT文本文档,保存为 系统清理.bat

右击 系统清理.bat 选择编辑,复制以下内容到文件中,保存

保存后双击运行。

@echo off

title Windows 系统无用文件清理

color 2E

echo -------------------------------------------

echo 开始进行系统清理

pause

cls

@echo off

del /f /s /q %systemdrive%*.tmp

del /f /s /q %systemdrive%*._mp

del /f /s /q %systemdrive%*.gid

del /f /s /q %systemdrive%*.chk

del /f /s /q %systemdrive%*.old

del /f /s /q %windir%*.bak

del /f /s /q %windir%prefetch*.*

rd /s /q %windir%temp & md %mindir%temp

del /f /s /q "%appdate%MicrosoftWindowscookies*.*"

del /f /s /q "%userprofile%Local SettingTemporary Internet Files*.*"

del /f /s /q "%userprofile%Local SettingTemp*.*"

rd /s /q "%userprofile%Local SettingsTemp" & md "%userprofile%Local SettingsTemp"

del /f /s /q "%appdata%MicrosoftWindowsRecent*.*"

@echo off

cls

color 2A

echo--------------------系统垃圾清理完成--------------------------

echo--------------------------------------------------------------

echo---------------------------退出-------------------------------

pause-----------------------