自制清理系统垃圾程序
2007-03-29 22:49
246 查看
电脑用久了,系统分区肯定会有许多垃圾文件,占据大量空间,像我的硬盘只有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,就打开我的电脑->工具->文件夹选项->查看,把隐藏已知文件类型的扩展名不要选中,点确定,然后再重命名。
新建一个记事本并输入以下的内容
程序代码:
@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,就打开我的电脑->工具->文件夹选项->查看,把隐藏已知文件类型的扩展名不要选中,点确定,然后再重命名。
相关文章推荐
- 自制程序清除系统垃圾文件
- 自制系统垃圾清理BAT小工具
- Windows 7系统垃圾清理自写程序
- 自制30秒清理电脑所有垃圾文件的DOS工具的详细方法和程序命
- Vista系统优化(1)——垃圾文件清理
- 清理系统垃圾(簡單版).bat
- 一个清理系统垃圾文件的批处理
- Ubuntu 16.04安装BleachBit清理系统垃圾文件
- 如何自己编写程序文件清理电脑垃圾
- Ubuntu如何清理系统垃圾
- 清理系统垃圾
- 系统垃圾清理利器CCleaner v5.30.6063绿色单文件版(增强版)
- 资料收集 清理系统垃圾文件
- ubuntu系统垃圾清理
- 如何快速清理系统垃圾
- windows 系统垃圾清理
- 专业清洁工 八款系统垃圾清理工具横向测评
- 教程之怎样清理mac系统垃圾
- 使用“一键清理垃圾”导致.Net程序无法运行的解决办法
- Vista 垃圾清理小程序