怎么清理系统没有用的垃圾

来源:百度知道 编辑:UC知道 时间:2024/05/14 19:57:54
@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.

如果长时间使用电脑以后,系统盘包括各个用户临时系统文件夹中会生成很多临时文件,当然也包括一些垃圾文件,还有IE里面访问过网站的临时记录文件。这个一键清理系统垃圾就是别人编的一个批处理,里面由一些DOS命令组成,在运行后会自动删除指定文件夹内的关键字的临时垃圾文件。一来释放一些空间,二来加快系统速度,不过没有杀毒呀恢复注册表呀什么的功能。
这个批处理没有问题,请放心使用。

顶二楼

超级兔子和优化大师