怎么在关机的时候自动删除垃圾文件

来源:百度知道 编辑:UC知道 时间:2024/06/02 20:32:29
经常手动删除垃圾文件好烦啊 冰点好是好 及是更新的时候麻烦点
有别的吗?

用记事本另存为"任意名".bat,然后放到 开始菜单--程序--启动 中,每次开机时清理。我觉得关机清理和开机清理好似区别不大。。。
以下是文件内容:
@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

1 你可在浏览器的工具里选择-选项-高级-在安全选项里勾选