如何用源代码清理系统垃圾 源代码清理系统垃圾方法介绍【详解】
时间:2023-03-17 来源:摸鱼下载站 标签: 系统 垃圾 源代码 类型 代码
1、win7系统下点击电脑屏幕左下角“ 开始→所有程序→附件→记事本 ”,然后把下面的蓝色代码复制进去:
@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、将上面的代码完成复制后,点击“ 文件——另存为 ”,