一分钟清除系统中所有垃圾文件

Windows在安装和使用过程中都会产生...

Windows在安装和使用过程中都会产生相当多的垃圾文件,包括临时文件(如:*.tmp、*._mp)日志文件(*.log)、临时帮助文件(*.gid)、磁盘检查文件(*.chk)、临时备份文件(如:*.old、*.bak)以及其他临时文件。特别是如果一段时间不清理IE的临时文件夹“Temporary Internet Files”,其中的缓存文件有时会占用上百MB的磁盘空间。这些垃圾文件不仅仅浪费了宝贵的磁盘空间,严重时还会使系统运行慢如蜗牛。这点相信你肯定忍受不了吧!所以应及时清理系统的垃圾文件的淤塞,保持系统的“苗条”身材,轻松流畅上网!

下面是步骤很简单就两步!

在桌面上点鼠标右键,选择新建一个“记事本”,把下面的字复制进去,点“另存为”,把文件名定为“清除系统垃圾.bat”就完成,记住后缀名一定要是.bat,好ok了!你的垃圾清除器就这样制作成功了!双击它就能很快地清理垃圾文件,大约一分钟不到。

@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. & paus

[Ctrl+A 全选 注:如需引入外部Js需刷新才能执行]

Related Posts

Comments are closed.