當(dāng)前位置:愛純凈 > 系統(tǒng)教程 > win7清理系統(tǒng)垃圾命令代碼

win7清理系統(tǒng)垃圾命令代碼

win7清理系統(tǒng)垃圾命令代碼

更新時(shí)間:2022-03-19 文章編輯:愛純凈 信息來(lái)源:網(wǎng)絡(luò) 閱讀次數(shù):

  在使用了Win7純凈版一段時(shí)間之后,電腦會(huì)產(chǎn)生很多的垃圾,不及時(shí)清理的話就會(huì)引起電腦的卡頓,使用起來(lái)很不順暢,一般我們都都會(huì)手動(dòng)清理垃圾,其實(shí)還有一種更加簡(jiǎn)單的方法,我們可以使用代碼來(lái)清理,下面小編就給大家來(lái)講解一下win7清理系統(tǒng)垃圾命令代碼,一起來(lái)看看吧。

  具體清理win7垃圾文件步驟:

  1、首先使用快捷鍵“win+R”打開運(yùn)行窗口;

  2、輸入命令“cleanmgr”,回車確定打開清理窗口;

win7清理系統(tǒng)垃圾命令代碼

  3、選擇想要掃描清理的磁盤,單擊“確定”即可運(yùn)行;

win7清理系統(tǒng)垃圾命令代碼

  4、等待掃描完成;

win7清理系統(tǒng)垃圾命令代碼

  5、彈出窗口中選擇你想要清理的文件,單擊下方“清理系統(tǒng)文件”即可清理完成;

win7清理系統(tǒng)垃圾命令代碼

  6、右鍵桌面鼠標(biāo)滑動(dòng)到“新建”,單擊選擇“文本文檔”;

win7清理系統(tǒng)垃圾命令代碼

  7、打開記事本文本文檔,粘貼以下命令,單擊左上角“文件”,選擇另存為,并修改名字為“一鍵清理.bat”:

  @echo off

  pause

  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)垃圾完成!

win7清理系統(tǒng)垃圾命令代碼

win7清理系統(tǒng)垃圾命令代碼

  8、雙擊運(yùn)行win7桌面上的“一鍵清理.bat”,等待其清理垃圾文件完成即可。

win7清理系統(tǒng)垃圾命令代碼

  清理電腦垃圾的方法有很多種,但清理起來(lái)都太麻煩了,大家可以試著用代碼清理win7垃圾文件。

留言與評(píng)論(共有 條評(píng)論)
驗(yàn)證碼:

本類最新列表

最熱系統(tǒng)下載