自制清理系统垃圾程序
电脑用久了,系统分区肯定会有许多垃圾文件,占据大量空间,像我的硬盘只有60G,就需要经常清理清理了,硬盘大的朋友也要清理清理垃圾文件,多了是会影响系统运行速度的。这个程序是自动清理电脑里的垃圾而不会破坏系统 。
新建一个记事本并输入以下的内容 程序代码:
@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 保存,不过还是文本文档是没什么作用的,把你保存的如:系统垃圾清理.txt,重命名为如:系统垃圾清理.bat
如果你保存后,并没有看到扩展名:txt,就打开我的电脑->工具->文件夹选项->查看,把隐藏已知文件类型的扩展名不要选中,点确定,然后再重命名。 |


zyl520cyp
博客统计信息
热门文章
最新评论
友情链接