C:\Windows\temp下有时生成很大文件

来源:百度知道 编辑:UC知道 时间:2024/05/29 04:50:58
有时候开机后几分钟后,打开任何窗口都很慢,然后发现C盘windows\temp里有个文件很大,而且越来越大,打开“我的电脑”就增加几十兆(自己删不掉,除非重启),刚才就把c盘剩的1.8G占满了,C盘可用空间0字节 然后自动清理把它清理掉了。我曾经杀过毒,但没发现,而且出现这种情况时也没开像Photoshop那么占c盘的软件。各位大师能不能告诉我是什么原因??

正常,因为这个文件本来就是系统临时文件会越来越大,要定期删除
也可以复制下面的代码另存为清除.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

定期运行就可以了

这个文件夹是系统自动建立的临时文件夹,大小随你使用情况而变化,在不打