关于清理系统垃圾.bat
因为里面的代码只对C盘作清理,你可以用记事本打开看看就明白了. 同理,你可以修改里面的目录,就能实现清理全盘
批处理清除垃圾文件bat
把下列内容存为BAT文件即可
---------------------------------------------------------------------
@echo off
echo 正在清除系统垃圾文件,请稍等......
del /f /s /q "C:\Documents and Settings\user\Application Data\Google\Local Search History\*.*"
del /f /s /q "C:\Documents and Settings\user\Local Settings\Temporary Internet Files\*.*"
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
del /f /s /q %systemdrive%\kb*.log
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\temp\*.*
del /f /a /q %systemdrive%\*.sqm
del /f /s /q %windir%\SoftwareDistribution\Download\*.*
del /f /s /q "%userprofile%\cookies\*.*"
del /f /s /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 "C:\WINDOWS\SoftwareDistribution\Download\*.*"
del /f /s /q "C:\WINDOWS\Driver Cache\i386\sp2.cab"
del /f /s /q "C:\WINDOWS\$NtServicePackUninstall$"
rd /s/q "C:\Documents and Settings\user\Local Settings\Temp"
md "C:\Documents and Settings\user\Local Settings\Temp"
echo 清除系统垃圾文件完成!
清除系统垃圾的.bat程序
新建个文本文档,把下面的复制进去
echo 正在清除系统垃圾文件,请稍等...
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\recycled\*.*
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\*.*"
echo. & pause
把txt改成bat就可以了
以上就是土嘎嘎小编大虾米为大家整理的垃圾文件清理bat_如何清楚系统垃圾bat?相关主题介绍,如果您觉得小编更新的文章对您有所帮助,不要忘记讲本站分享给您身边的朋友哦!!