网站制作学习网经验与学习→正文:清除本地垃圾
字体:

清除本地垃圾

经验与学习 2009/2/27 10:00:14  点击:不统计

关键词:清除垃圾,清除本地垃圾,清除电脑垃圾文件.清除临时文件.垃圾文件清除



一下代码是用dos编写,写入到txt然后保存为.bat文件运行即可

@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

·上一篇:一个问题阻止windows正确检查此机器的许可证,错误代码为:0x80070002 >>    ·下一篇:BIOS内容 >>
推荐文章
最新文章