自制垃圾清除器
2013-04-16 20:56 Keiven_LY 阅读(307) 评论(0) 收藏 举报在Windows在安装和使用过程中都会产生相当多的垃圾文件,包括临时文件(如:*.tmp、*._mp)日志文件(*.log)、临时帮助文件(*.gid)、磁盘检查文件(*.chk)、临时备份文件(如:*.old、*.bak)以及其他临时文件。特别是如果一段时间不清理IE的临时文件夹“Temporary Internet Files”,其中的缓存文件有时会占用上百MB的磁盘空间。这些LJ(垃圾)文件不仅仅浪费了宝贵的磁盘空间,严重时还会使系统运行慢如蜗牛。所以应及时清理系统的LJ文件的淤塞,保持系统的“苗条”身材,轻松流畅上网!
在桌面点右键:新建-->记事本 (New Text Document),把分割线之内的文字复制进去,保存至桌面,文件名为“清除系统LJ.bat”,当然也要把默认的文件扩展名 .txt 删掉,就完成了。记住后缀名一定要是.bat,ok!你的垃圾清除器就这样制作成功了!
以下是适合XP系统
----------------------我是分隔線----------------------------------
@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 清除系统LJ完成!
echo. & pause
----------------------我是分隔線----------------------------------
以下是适合Vista和7系统
----------------------我是分隔線----------------------------------
@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%\AppData\Roaming\Microsoft\Windows\Recent\*.*
del /f /s /q "%userprofile%\AppData\Local\Microsoft\Windows\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\AppData\Local\Temp\*.*"
del /f /s /q "%userprofile%\AppData\Roaming\Microsoft\Windows\Recent\*.*"
echo 清除系统LJ完成!
echo. & pause
----------------------我是分隔線----------------------------------
Vista和7用户,右键点击刚创建的”清除系统LJ.bat“,选择“以管理员身份运行” (Run as Administrator)。
浙公网安备 33010602011771号