求一键清理系统垃圾的批处理文件代码

来源:百度知道 编辑:UC知道 时间:2024/05/17 12:53:02

@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

打开记事本,输入以下内容:
@echo off
rmdir/s/q%temp%
DEL/F/Q/S C:\*.tmp
DEL/F/Q/S C:&#