c盘里的什么文件可以删

来源:百度知道 编辑:UC知道 时间:2024/07/02 08:10:52
我的电脑反应速度很慢,看了看c盘后发现c盘可用空间只有5G多了,我不知道删哪里,请问各位大侠帮忙!补充点,为什么我的电脑不能一键恢复了?

把下面的代码拷贝到记事本,然后保存为“清理磁盘垃圾.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

C:\Documents and Settings\用户名\Local Settings下的temp和Tempo