如何删除电脑中的垃圾

来源:百度知道 编辑:UC知道 时间:2024/04/28 21:37:21
新建一个文本文挡,将下面的复制过去

@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 清除系统LJ完成!
echo. & pause
请问这方法能在windows98上用吗?能具体解释一下上面各语句删除的是哪些文件?请高手指教,非常感谢!

在开始->运行中输入%文件夹名字%就可以到上面的这些文件夹(比如%systemdrive%是系统文件夹,%windir%是windows安装文件夹.所以如果在98里这样能跳到该文件夹就说明可用.这些文件夹在环境变量里有声明.不放心手动去删除也可以.

都是一些垃圾文件,比如临时的备份 ,缓存等,还有最近打开的文件。可以用优化大师