① 求一鍵清理系統垃圾的批處理命令
======復制下面的文字(這行不用復制)============================= @echo off echo 正在清除系統垃圾文件,請稍等...... 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 清除系統LJ完成! echo. & pause =====到這里為止(這行不用復制)==============================================
② Windows XP 系統垃圾清理 批處理命令咋寫
將以下內容自暴復制到文本文件中,再將後綴名.txt改為.bat,雙擊即開始運行。要看源碼,可選打開方式,用記事本打開。
@echo
offecho
在windowsshiyong使用過成中,電腦系統磁碟的可用空間一天天在減少,運行速度在變慢談改拆。為此,我特編制了這個批處理命令,用來快速清含棗理windows臨時文件(如:*.tmp、*._mp)日誌文件(*.log)、臨時幫助文件(*.gid)、磁碟檢查文件(*.chk)、臨時備份文件(如:*.old、*.bak)以及其他臨時文件,保證輕松流暢上網。
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\*.*
echo
清除系統垃圾完成!
③ 如何製作一鍵清理c盤垃圾的批處理文件
不過,筆者還是跟大家介紹一下,方法如下:首先,新建一個記事本並輸入以下的內容:@echo off
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 清除系統垃圾完成!
echo. & pause 其次,將它保存,類型為所有文件。再更名為「清除系統垃圾.bat」 ,後綴名一定要為「.bat」。然後要進行清理c盤垃圾時,雙擊「清除系統垃圾.bat」運行該批處理文件就可以了。
④ 哪裡有 一鍵清理系統垃圾的批處理文件
自己在桌面上新建一個文本文檔,輸入:
@echo off
pause
echo 正在清理系統垃圾文件,請稍等......
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 清理系統垃圾完成!
echo. & pause
然後保存為後綴.bat的文件,此文件就是處理垃圾的批處理文件了。
⑤ Windows 7系統垃圾清理 批處理命令咋寫
@echo
off
echo
正在清除系統垃圾文件,請稍等......
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
清除系統垃圾完成
echo.
&
pause
把上邊的全部復制到文本文檔,然後另存為bat文件拿歷就OK了
⑥ 如何製作一鍵清理c盤垃圾的批處理文件
這個程序是自動清理電腦里的垃圾文件而不會破壞系統,如果沒有安裝其它工具的時候可以使用,筆者還是建議網友清理c盤垃圾還是用金山毒霸的金山衛士,該工具很好用。不過,筆者還是跟大家介紹一下,方法如下:首先,新建一個記事本並輸入以下的內容:@echo off 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 清除系統垃圾完成! echo. & pause 其次,將它保存,類型為所有文件。再更名為「清除系統垃圾.bat」 ,後綴名一定要為「.bat」。然後要進行清理c盤垃圾時,雙擊「清除系統垃圾.bat」運行該批處理文件就可以了。
⑦ 如何使用bat批處理命令清理windows10系統垃圾文件
滑鼠右鍵單擊,新建文本文檔-記事本
在文件中輸入:
++++++++++++++++++++++++++++++++++++++++++++++
@echo off
color 0a
title windows10系統垃圾清理---
echo ★☆ ★☆ ★☆ ★☆ ★☆★☆★☆ ★☆ ★☆ ★☆ ★☆★
echo ★☆ ★☆ ★☆ ★☆ ★☆★☆★☆ ★☆ ★☆ ★☆ ★☆★
echo.★☆ ☆★
echo.★☆ ☆★
echo.★☆ 清理系統垃圾文件,請稍等...... ☆★
echo ★☆ ☆★
echo.★☆ ☆★
echo ★☆ ★☆ ★☆ ★☆ ★☆★☆★☆ ★☆ ★☆ ★☆ ★☆★
echo ★☆ ★☆ ★☆ ★☆ ★☆★☆★☆ ★☆ ★☆ ★☆ ★☆★
echo 清理垃圾文件,速度由電腦文件大小而定。在沒看到結尾信息時
echo 請勿關閉本窗口。
echo 正在清除系統垃圾文件,請稍後......
echo 刪除補丁備份目錄
RD %windir%\$hf_mig$ /Q /S
echo 把補丁卸載文件夾的名字保存成2950800.txt
dir %windir%\$NtUninstall* /a:d /b >%windir%\2950800.txt
echo 從2950800.txt中讀取文件夾列表並且刪除文件夾
for /f %%i in (%windir%\2950800.txt) do rd %windir%\%%i /s /q
echo 刪除2950800.txt
del %windir%\2950800.txt /f /q
echo 刪除補丁安裝記錄內容(下面的del /f /s /q %systemdrive%\*.log已經包含刪除此類文件)
del %windir%\KB*.log /f /q
echo 刪除系統盤目錄下臨時文件
del /f /s /q %systemdrive%\*.tmp
echo 刪除系統盤目錄下臨時文件
del /f /s /q %systemdrive%\*._mp
echo 刪除系統盤目錄下日誌文件
del /f /s /q %systemdrive%\*.log
echo 刪除系統盤目錄下GID文件(屬於臨時文件,具體作用不詳)
del /f /s /q %systemdrive%\*.gid
echo 刪除系統目錄下scandisk(磁碟掃描)留下的無用文件
del /f /s /q %systemdrive%\*.chk
echo 刪除系統目錄下old文件
del /f /s /q %systemdrive%\*.old
echo 刪除回收站的無用文件
del /f /s /q %systemdrive%\recycled\*.*
echo 刪除系統目錄下備份文件
del /f /s /q %windir%\*.bak
echo 刪除應用程序臨時文件
del /f /s /q %windir%\prefetch\*.*
echo 刪除系統維護等操作產生的臨時文件
rd /s /q %windir%\temp & md %windir%\temp
echo 刪除當前用戶的COOKIE(IE)
del /f /q %userprofile%\cookies\*.*
echo 刪除internet臨時文件
del /f /s /q "%userprofile%\local settings\temporary internet files\*.*"
echo 刪除當前用戶日常操作臨時文件
del /f /s /q "%userprofile%\local settings\temp\*.*"
echo 刪除訪問記錄(開始菜單中的文檔裡面的東西)
del /f /s /q "%userprofile%\recent\*.*"
echo
echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★
echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★
echo ★☆ ☆★
echo.★☆ ☆★
echo.★☆ ☆★
echo ★☆ ☆★
echo ★☆ 恭喜您!清理全部完成! ☆★
echo.★☆ ☆★
echo ★☆ ☆★
echo.★☆ ☆★
echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★
echo ★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★
echo.
++++++++++++++++++++++++++++++++++++++++++++++
然後單擊文件,選擇另存為
將文件另存為「 Windows10一鍵垃圾清理.bat 」,放置在任意位置。
雙擊文件便開始自動垃圾清理大約要幾分鍾時間
⑧ win10手動清理系統垃圾方法
新買的電腦運行速度特別快,但win10已經使用一段時間了,系統使用久了之後會產生大量的臨時文件和一些無用的系統緩存,而win10系統也是一樣的,那麼win10系統如何快速清理垃圾?接下來是我為大家收集的win10手動清理系統垃圾方法,希望能幫到大家。
win10手動清理系統垃圾方法
1、首先確保自己的電腦已經升級到win10系統,並且是正常激活狀態;
2、滑鼠右鍵新建一記事本文件,並命名為【垃圾清理.txt】;
3、打開記事本文件,然後再裡面貼上代碼
【@echo off echo 正在清除系統垃圾文件,請稍等...... 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 %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 清除系統LJ完成! echo. & pause 】
中括弧裡面的,不要帶中括弧。
4、然後保存文件,修改文件名的後綴為“bat”,然後蹦出提示框,點擊“是”,就把清理垃圾的批處理文件,建立好了;
5、滑鼠左鍵,雙擊該清理垃圾的批處理文件,彈出DOS界面,提示“正在清理系統垃圾文件,請稍等...”
6、根據電腦中垃圾文件多與少,等待的時間也不相同,在過程中,可以看到清理的一些系統文件;
7、在清理完系統垃圾文件之後(一般稍等一會),最下面一行會有提示“清理系統LJ完成!請按任意鍵繼續”,隨便點一鍵盤鍵位,就可以退出對話框了。
注意事項
在上述第三步驟,粘貼命令代碼的時候,一定不要把中括弧粘貼進去。
清理完系統垃圾之後,垃圾箱裡面的文件是清理不了的,建議手動清理一下。
以上就是win10清理系統垃圾方法介紹,操作很簡單的,大家按照上面步驟進行操作即可,希望能對大家有所幫助!
看了“win10手動清理系統垃圾方法”還想看:
1. win10如何清理系統垃圾
2. 如何清理win10系統垃圾
3. win10怎樣清理系統垃圾
4. Win10如何一鍵清理系統文件
5. Windows系統自帶清理工具cleanmgr的使用教程
⑨ 怎樣用批處理文件清理系統垃圾文件
首先建立
記事本
,再輸入如下內容後保存,注意擴展名要改成.bat哦。雙擊就可以
清理系統垃圾
了
記事本里輸入以下內容:
@echo
off
echo
正在清除系統垃圾文件,請稍等......
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
清除系統LJ完成!
echo.
&
pause
⑩ 怎樣用批處理文件清理系統垃圾文件
首先建立記事本,再輸入如下內容後保存,注意擴展名要改成.bat哦。雙擊就可以清理系統垃圾了
記事本里輸入以下內容檔殲:
@echo
off
echo
正在清除系統垃圾文岩配件粗蠢指,請稍等......
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
清除系統LJ完成!
echo.
&
pause