temp文件中老是出现垃圾文件是为什么啊?谁能告诉我谢谢!!

来源:百度知道 编辑:UC知道 时间:2024/05/05 06:13:31
请各位高人能够帮我尽快解答!真的非常急!谢谢了各位了我先在这.

那是个临时文件夹。。。肯定会有

它本来就是用来存放临时文件(也就是垃圾文件),很正常啊。

里面内容随时可以删除,实际上,系统还有更多垃圾文件,我们可以建个批处理文件,自动删除这些垃圾文件。

方法如下:
在桌面上点鼠标右键,选择新建一个“记事本”,把下面的字复制进去,把文件保存为“清除系统垃圾.txt”,然后将它的后缀改为.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&