@echo off
color 0e
echo.
echo ----正在安全地自动清除垃圾文件----
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 /q %windir%\*.tmp
del /f /s /q %windir%\prefetch\*.*
del /f /q "%ALLUSERSPROFILE%\Documents\DrWatson\*.*"
rd /s /q %windir%\temp & md %windir%\temp
del /f /q %userprofile%\recent\*.*
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /q "%USERPROFILE%\Application Data\Microsoft\Office\Recent\*.lnk"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\recent\*.*"
del /f /s /q "%userprofile%\NetHood\*.*"
echo 清除系统垃圾完成!
新建一个文本文档,把上面的内容复制进去,然后保存,把文档的后缀名txt改成bat即可
回复Comments
{commenttime}{commentauthor}
{CommentUrl}
{commentcontent}