windows系统清理垃圾文件

来源:互联网 发布:双十一淘宝怎么赚钱 编辑:程序博客网 时间:2024/06/02 21:19

步骤:

1.先新建一个TXT文本文档,把下面的代码保存进去

2.修改文件后会名为  .bat   。

3.双击就可以运行了

*****************************代码是星号中间的部分*************************************

@echo off
echo 俺正在清除系统的垃圾文件
echo 开始很慢,请小主把俺最小化然后去睡觉吧...
echo 正在收集系统信息...
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
exit

******************************************************************************************


0 0
原创粉丝点击