放在哪不用任何手动,启起就把C盘的垃圾都清理了,还原C盘容量。

来源:百度知道 编辑:UC知道 时间:2024/05/14 13:49:36
请这是哪一种《一键》

请问你是删掉什么样的垃圾?
是上网留下来的临时文件?历史记录....等等
还是重新装系统,这最干净了,觉得没必要吧!!!

一键删掉垃圾东西
@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

复制上面的代码 保存为BAT的后缀名.这知道吧