方法一:磁盘清理
打开我的电脑 - 点击系统盘右键 - 选择属性然后就会弹出磁盘清理对话框,点击磁盘清理,然后等待扫描完毕后选择要清理的文件,点击确定就会自动清理垃圾了。(温馨提示:进行磁盘清理时最好少开一些应用程度这样可以清理的更干净)
方法二:创建批处理文件,实现一键清理垃圾
新建一个记事本,在里面粘贴以下内容
@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% ecycled*.*
del /f /s /q %windir%*.bak
del /f /s /q %windir%prefetch*.*
rd /s /q %windir% emp & md %windir% emp
del /f /q %userprofile%cookies*.*
del /f /q %userprofile% ecent*.*
del /f /s /q "%userprofile%Local SettingsTemporary Internet Files*.*"
del /f /s /q "%userprofile%Local SettingsTemp*.*"
del /f /s /q "%userprofile% ecent*.*"
echo 清除系统LJ完成!
echo. & pause
然后把记事本另存为清除垃圾.bat(可命名为其它的名字,但后缀不能变)的批处理文件然后找到这个文件 ,点击打开,就可以执行清除垃圾的命令啦。
方法三:软件清理垃圾
打开安全卫士软件,选择清除垃圾,然后点击开始扫描,这里扫描有段待的时候,等扫描完点击清除垃圾就OK啦。