經(jīng)常使用電腦的用戶都知道在我們使用電腦的過程中是會(huì)產(chǎn)生不少垃圾文件和緩存的,很多朋友不知道如何才能清理垃圾文件,為了大家的電腦干凈整潔,下面小編來分享一種電腦清理垃圾的方法。
絕大部分國人現(xiàn)在使用的電腦中安裝的操作系統(tǒng)都是windows操作系統(tǒng),在我們使用電腦的時(shí)候,windows系統(tǒng)是會(huì)產(chǎn)生各種垃圾文件的,接下來小編就講講清理系統(tǒng)垃圾文件的方法。
電腦垃圾清理的簡(jiǎn)單方法
1.首先在電腦桌面上新建一個(gè)文本文檔并打開,進(jìn)入下一步
電腦垃圾載圖1
2.將以下代碼復(fù)制到打開的文本文檔中,進(jìn)入下一步。
@echo off
echo 正在清除系統(tǒng)垃圾文件,請(qǐ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
3.將文本文檔重命名:清理系統(tǒng)垃圾.bat保存,進(jìn)入下一步。
電腦垃圾清理載圖2
4.雙擊運(yùn)行該文件,這時(shí)電腦就會(huì)自動(dòng)開始情況系統(tǒng)垃圾了,耐心等待清理完成。
電腦垃圾載圖3
5.系統(tǒng)垃圾清理完成后,會(huì)有相關(guān)的提示,按鍵盤上的任意鍵結(jié)束即可。根據(jù)提示,點(diǎn)擊窗口,點(diǎn)擊鍵盤任意鍵結(jié)束,完成清理。
系統(tǒng)載圖4
以上就是電腦垃圾情況的方法了,你學(xué)會(huì)了嗎?
掃一掃 生活更美好