當(dāng)win7純凈版系統(tǒng)使用時間長了,電腦中會積累越來越多的垃圾文件,占用內(nèi)存空間。這時可以使用運行代碼快速清除win7系統(tǒng)垃圾。今天,愛純凈小編介紹下win7系統(tǒng)清理垃圾代碼怎么使用。
第一步:首先使用快捷鍵【win+R】快速調(diào)出運行窗口。
第二步:接著輸入命令:cleanmgr,按回車確定打開清理窗口。
第三步:選擇想要掃描清理的磁盤,單擊【確定】即可運行。
第四步:等待掃描完成。
第五步:彈出窗口中選擇你想要清理的文件,單擊下方【清理系統(tǒng)文件】即可清理完成。
第六步:右鍵桌面鼠標(biāo)滑動到【新建】,單擊選擇【文本文檔】。
第七步:打開記事本文本文檔,粘貼以下命令,單擊左上角【文件】,選擇另存為,并修改名字為【一鍵清理.bat】。
@echo off
echo 正在清除系統(tǒng)垃圾文件,請稍等。。。。。。
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 清除系統(tǒng)LJ完成!
echo. & pause
第八步:雙擊運行win7純凈版64位系統(tǒng)桌面上的【一鍵清理.bat】,等待其清理垃圾文件完成即可。
留言與評論(共有 條評論) |