清理系统垃圾的批处理

批处理内容如下,将其保存为 *.bat 格式即可,如 1.bat

@echo off
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 /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 清除系统垃圾完成!
echo -------------------------------------
pause

This entry was posted in Technology. Bookmark the permalink. 5,446 views

Related Posts

One Response to 清理系统垃圾的批处理

  1. bbslori says:

    顶,用了

Leave a Reply

Your email address will not be published. Required fields are marked *