del /f /s /q %systemdrive%*.gid
echo 删除系统目录下scandisk(磁盘扫描)留下的无用文件
del /f /s /q %systemdrive%*.chk
echo 删除系统目录下old文件
del /f /s /q %systemdrive%*.old
echo 删除回收站的无用文件
del /f /s /q %systemdrive%recycled*.*
echo 删除系统目录下备份文件
del /f /s /q %windir%*.bak
echo 删除应用程序临时文件
del /f /s /q %windir%prefetch*.*
echo 删除系统维护等操作产生的临时文件
rd /s /q %windir%temp & md %windir%temp
echo 删除当前用户的COOKIE(IE)
del /f /q %userprofile%cookies*.*
echo 删除internet临时文件
del /f /s /q "%userprofile%local settingstemporary internet files*.*"
echo 删除当前用户日常操作临时文件
del /f /s /q "%userprofile%local settingstemp*.*"
echo 删除访问记录(开始菜单中的文档里面的东西)
del /f /s /q "%userprofile%recent*.*"
echo
echo 恭喜您!清理全部完成!
然后把记事本另存为垃圾清理.bat(可命名为其它的名字,但后缀不能变)的批处理文件,保存后再点击保存后的图标,点击运行后就可以直接清理垃圾了。










