怎样手动编写系统垃圾清理程序
1、首先点击“开始”-“所有程序”-“附件”-“记事本”打开记事本程序。或者打开“运行对话框”,输入“notepad.exe"按回车同样可以打开“记事本”程序。
2、然后复制以下内容到记事本文件中:
@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 s\*.*
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\*.*"
sfc /purgecache '清理系统盘无用文件
defrag %systemdrive% -b '优化预读信息
echo 清除系统LJ完成!
echo. & pause
3、点击“文件”-“保存”,将文件存为名称是“ClearSystem.txt”,然后将文件重命名为“ClearSystem.bat ”,在弹出的警告对话框中点击“确定”即可完成文件的重命名。
4、最后当使用系统一段时间以后,需要清理系统时,只需要双击“ClrSys.bat”(针对WindwosXP)或在文件“ClrSys.bat”上右击选择“以管理员身份运行”,当出现“清除系统LJ完成!”时说明完成了系统的清理工作,此时重启计算机,然后就会发现你的系统运行变得更快。
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。