Win7自己動手清理系統(tǒng)垃圾文件的方法
在我們?nèi)粘J褂秒娔X的過程中,遇到電腦出現(xiàn)卡頓或者網(wǎng)速不流暢,我們都會習(xí)慣性的打開殺毒軟件,清理下系統(tǒng)的垃圾文件和緩存文件,那么我們能不能自己動手清理系統(tǒng)垃圾文件呢?下面小編就來給大家分享下Win7自己動手清理系統(tǒng)垃圾文件的方法。
1、首先了解下DEL命令:打開cmd,輸入DEL /?出現(xiàn)以下解釋:
2、新建一記事本(后綴為.txt),重命名,在這命名為“清除系統(tǒng)垃圾.txt”,輸入以下程序:
01@echo off02echo 請勿關(guān)閉本窗口!03echo 正在清除系統(tǒng)垃圾文件,請稍等......04del /f /s /q %systemdrive%*.tmp05del /f /s /q %windir%prefetch*.* rd /s /q %windir%temp & md %windir%temp06del /f /s /q "%userprofile%Local SettingsTemp*.*"07del /f /s /q %systemdrive%*._mp08del /f /s /q %windir%*.bak09del /f /s /q %systemdrive%*.log10del /f /s /q %systemdrive%*.gid11del /f /s /q %systemdrive%*.chk12del /f /s /q %systemdrive%*.old13del /f /s /q %systemdrive%recycled*.*14del /f /q %userprofile%cookies*.*15del /f /q %userprofile%recent*.*16del /f /s /q "%userprofile%Local SettingsTemporary Internet Files*.*"17del /f /s /q "%userprofile%recent*.*"18echo 清除系統(tǒng)垃圾完成!復(fù)制代碼@echo offecho 請勿關(guān)閉本窗口!echo 正在清除系統(tǒng)垃圾文件,請稍等......del /f /s /q %systemdrive%*.tmpdel /f /s /q %windir%prefetch*.* rd /s /q %windir%temp & md %windir%tempdel /f /s /q "%userprofile%Local SettingsTemp*.*"del /f /s /q %systemdrive%*._mpdel /f /s /q %windir%*.bakdel /f /s /q %systemdrive%*.logdel /f /s /q %systemdrive%*.giddel /f /s /q %systemdrive%*.chkdel /f /s /q %systemdrive%*.olddel /f /s /q %systemdrive%recycled*.*del /f /q %userprofile%cookies*.*del /f /q %userprofile%recent*.*del /f /s /q "%userprofile%Local SettingsTemporary Internet Files*.*"del /f /s /q "%userprofile%recent*.*"echo 清除系統(tǒng)垃圾完成!3、根據(jù)上面的解釋,就可以差不多了解以上程序的含義了。差不多的意思是,在安靜模式下,刪除一個或多個文件或者目錄列表中只讀文件和所有子目錄中的指定的文件,刪除全局通配符時,不要求確認。
4、保存文件,然后對記事本 “清除系統(tǒng)垃圾.txt”進行重命名,只要把后綴.txt改為后綴.bat,此時會彈出“如果改變文件擴展名,可能會導(dǎo)致文件不可用,確實要更改嗎?”的提示,直接點擊”是“,就創(chuàng)建好了帶DEL命令的bat批處理文件(文件縮略圖顯示為兩個齒輪)。
5、最后,只要雙擊運行此bat批處理文件即可清理系統(tǒng)垃圾了,清除完之后會自動退出。
以上就是Win7自己動手清理系統(tǒng)垃圾文件的方法,用戶們可以將這個文件放在桌面上,需要用到時點擊即可使用。
相關(guān)文章:
1. Windows 操作系統(tǒng)快速關(guān)機之謎2. Windows7與Server2008雙系統(tǒng)錯誤3. Windows Modules Installer Worker是什么進程?硬盤占用100%的原因分析4. Windows 7打官方中文包后軟件亂碼的解決方法5. 銀河麒麟操作系統(tǒng)(KyLin)常用問題及解決方法6. Win7鏡像ISO無法裝載怎么辦?Win7鏡像ISO無法裝載的解決方法7. Win10桌面點擊右鍵刷新特別卡怎么辦8. Win11系統(tǒng)搜索不到藍牙耳機怎么辦?Win11搜索不到藍牙耳機解決方法9. Win10 20H2怎么升級21H1 怎么升級win10系統(tǒng)版本到21H110. 戴爾怎么使用u盤重裝win10?戴爾使用u盤重裝win10系統(tǒng)的方法分享
