删除IE临时文件

来源:百度知道 编辑:UC知道 时间:2024/05/25 17:14:48
我建了一个批处理del /f /s /q C:\Documents and Settings\Administrator\Local Settings\Temporary Internet Files\*.*
怎么删不掉里面的文件呢?有哪里错误?
我在网上看到一些批处理比如:
@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%\

正在使用中的文件是删不掉的,比如你正在打开网页,IE临时文件夹里的有些文件是删不掉的,你的批处理是没有问题,不过你是否正常运行了批处理呢,看一下组策略有没有限制批处理的运行

有写文件是不是在使用中啊,你进安全模式里面去试试。