電腦長時間不清理垃圾就會變得運行緩慢,但是用各種所謂的殺毒軟件清理垃圾也無法徹底清除。還不如自己建立一個一鍵清理垃圾的bat。雙擊就可以搞定它。下面,我就給大家介紹一下一鍵清理垃圾的現(xiàn)象步驟
近來有很多懶人朋友詢問一鍵清理垃圾的方法,其實一鍵清理垃圾是一組批處理,只要將代碼復(fù)制到記事本中,將后綴名改為清理垃圾.bat就可以一鍵清理垃圾啦。我給大家?guī)砹藞D文教程,一起來了解一下吧
一鍵清理垃圾教程
1、打開記事本,將以下代碼進行復(fù)制到記事本中
@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)垃圾完成,請檢查瀏覽器是否已正常打開!
echo. & pause
2、然后將其另存到桌面,“保存類型”選擇“所有文件”,文件名先自定,點擊保存
電腦載圖1
清理垃圾載圖2
清理垃圾bat載圖3
以上就是一鍵清理垃圾的詳細步驟了,以后想清理垃圾只要雙擊這個文件就可以啦
掃一掃 生活更美好