當前位置:愛純凈 > 系統(tǒng)教程 > Win7純凈版系統(tǒng)怎么手動清理系統(tǒng)垃圾文件

Win7純凈版系統(tǒng)怎么手動清理系統(tǒng)垃圾文件

Win7純凈版系統(tǒng)怎么手動清理系統(tǒng)垃圾文件

更新時間:2019-05-05 文章編輯:愛純凈 信息來源:網絡 閱讀次數:

  win7純凈版系統(tǒng)使用久了,就會產生很多垃圾文件,一般我們都會習慣性使用第三方清理軟件,比如360安全衛(wèi)士、電腦管家等,清理系統(tǒng)的垃圾文件和緩存文件,那么我們能不能自己動手清理系統(tǒng)垃圾文件呢?今天小編就來給大家分享下Win7純凈版系統(tǒng)怎么手動清理系統(tǒng)垃圾文件的方法。

  具體解決方法如下:

  第一步:首先了解下DEL命令:打開cmd,輸入DEL /?出現以下解釋:

Win7純凈版系統(tǒng)怎么手動清理系統(tǒng)垃圾文件

  第二步:新建一記事本(后綴為.txt),重命名,在這命名為“清除系統(tǒng)垃圾.txt”,輸入以下程序:

  1. 01@echo off
  2. 02echo 請勿關閉本窗口!
  3. 03echo 正在清除系統(tǒng)垃圾文件,請稍等......
  4. 04del /f /s /q %systemdrive%\*.tmp
  5. 05del /f /s /q %windir%\prefetch\*.* rd /s /q %windir%\temp & md %windir%\temp
  6. 06del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
  7. 07del /f /s /q %systemdrive%\*._mp
  8. 08del /f /s /q %windir%\*.bak
  9. 09del /f /s /q %systemdrive%\*.log
  10. 10del /f /s /q %systemdrive%\*.gid
  11. 11del /f /s /q %systemdrive%\*.chk
  12. 12del /f /s /q %systemdrive%\*.old
  13. 13del /f /s /q %systemdrive%\recycled\*.*
  14. 14del /f /q %userprofile%\cookies\*.*
  15. 15del /f /q %userprofile%\recent\*.*
  16. 16del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
  17. 17del /f /s /q "%userprofile%\recent\*.*"
  18. 18echo 清除系統(tǒng)垃圾完成!
復制代碼
@echo off echo 請勿關閉本窗口! echo 正在清除系統(tǒng)垃圾文件,請稍等...... del /f /s /q %systemdrive%\*.tmp del /f /s /q %windir%\prefetch\*.* rd /s /q %windir%\temp & md %windir%\temp del /f /s /q "%userprofile%\Local Settings\Temp\*.*" del /f /s /q %systemdrive%\*._mp del /f /s /q %windir%\*.bak 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 /q %userprofile%\cookies\*.* del /f /q %userprofile%\recent\*.* del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*" del /f /s /q "%userprofile%\recent\*.*" echo 清除系統(tǒng)垃圾完成!

  第三步:根據上面的解釋,就可以差不多了解以上程序的含義了。差不多的意思是,在安靜模式下,刪除一個或多個文件或者目錄列表中只讀文件和所有子目錄中的指定的文件,刪除全局通配符時,不要求確認。

  第四步:保存文件,然后對記事本 “清除系統(tǒng)垃圾.txt”進行重命名,只要把后綴.txt改為后綴.bat,此時會彈出“如果改變文件擴展名,可能會導致文件不可用,確實要更改嗎?”的提示,直接點擊”是“,就創(chuàng)建好了帶DEL命令的bat批處理文件(文件縮略圖顯示為兩個齒輪)。

  第五步:最后,只要雙擊運行此bat批處理文件即可清理系統(tǒng)垃圾了,清除完之后會自動退出。

Win7純凈版系統(tǒng)怎么手動清理系統(tǒng)垃圾文件

  以上就是Win7純凈版系統(tǒng)怎么手動清理系統(tǒng)垃圾文件的方法,用戶們可以將這個文件放在桌面上,需要用到時點擊即可使用。

留言與評論(共有 條評論)
驗證碼:

本類最新列表

最熱系統(tǒng)下載