电脑用久了,就会产生许多垃圾文件,虽然你可以安装软件进行扫描清理,不过还是有点麻烦,清理速度也不甚理想。今天我就教大家自制“清理系统垃圾”的小工具,非常简单哦~
@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 SettingsTemporary Internet Files*.*” del /f /s /q “%userprofile%Local SettingsTemp*.*” del /f /s /q “%userprofile%recent*.*” echo 清除系统LJ完成! echo. & pause
2、接着,点击【文件】-【另存为】,保存类型选【所有文件】,文件名填【 清除系统垃圾.bat 】,最后保存到桌面;
3、在桌面上双击一下刚才保存的文件,就会自动清理系统垃圾啦~
通过这个方法,一键就能清理垃圾文件,不仅能腾出空间,还能让电脑更流畅一点,大家不妨试试吧!
声明:本站部分文章内容及图片转载于互联 、内容不代表本站观点,如有内容涉及侵权,请您立即联系本站处理,非常感谢!