xp系统垃圾清理代码的问题,请对电脑清理很熟悉的人进来。

来源:百度知道 编辑:UC知道 时间:2024/05/13 02:38:53
请问下面这两中清理系统的代码那个安全:
@echo off
pause
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

echo 正在清理系统windows临时目录下的文件,请稍等......
rd /s /q %windir%\temp & md %windir%\

我觉得都不安全,如果使用代码来删除记录的话,它会随便删掉,不管你的记录是否重要.但是如果你是人工删除的话,你可以自己分析你的记录是否重要,然后决定去留.如果贪方便的话可能会造成不必要的麻烦

用优化大师吧,我以前也是不懂,用代码结果电脑都开不了机,电脑重装的系统,里面的东东统统没有拉

NO