关注互联网,关注前端技术

windows下利用批处理清除系统垃圾文件

利用批处理清除系统垃圾文件
1)打开“记事本或写字板”,输入以下内容:
@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

2)然后另存为.bat文件.

3)最后,直接双击这个批处理文件就可清楚系统的一些垃圾文件!!!
标签:Windows
分类:电脑知识| 发布:水若寒寒| 查看: | 发表时间:2010-8-16
原创文章如转载,请注明:转载自顶点网络 http://www.ddwt.net/
本文链接:http://www.ddwt.net/post/43.html

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。