这些代码清除没用的文件有用吗?会不会清除有用的文件啊?

来源:百度知道 编辑:UC知道 时间:2024/05/25 03:08:04
@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 s\*.*
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\*.*"
sfc /purgecache '清理系统盘无用文件
defrag %systemdrive% -b '优化预读信息 <

效果很好哦,那些专门的软件速度慢,效果也不明显,这个真的不错,它清除的很多是临时文件,其他的你看后缀也知道都是些垃圾,用吧,别担心!!!至于为什么,说了实在太多不便解释,请原谅。

顺便教你内存释放的方法:

新建一个记事本,输入
mystart=space(100000000)

保存文件, 保存名字为 内存释放器.vbs 文件类型为:所有文件 注意去掉 txt。

我的内存是256 所以用一亿,如果你的机子内存更大,按比例增加,反之减少!!!

看文件后缀名和文件夹名,就知道是没用的文件了

不会有什么问题,就是你上网时候保存的用户名、密码之类的也会被清除
del /f /q %userprofile%\COOKIES s\*.*
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"

回收站也会被清空
del /f /s /q %systemdrive%\recycled\*.*

其它的文件应该都没什么用了