① 如何製作一鍵清理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」運行該批處理文件就可以了。
② 如何製作一鍵清理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 」,放置在任意位置。
雙擊文件便開始自動垃圾清理大約要幾分鍾時間
④ 求一鍵清理系統垃圾的批處理命令
======復制下面的文字(這行不用復制)============================= @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 =====到這里為止(這行不用復制)==============================================
⑤ 給個一鍵清理系統垃圾的批處理,高手進
在電腦屏幕的左下角按「開始→程序→附件→記事本」,把下面的文字復制進去,點「另存為」,路徑選「桌面」,保存類型為「所有文件」,文件名為「清除系統LJ.bat」,就完成了。記住後綴名一定要是.bat,ok!你的垃圾清除器就這樣製作成功了!
雙擊它就能很快地清理垃圾文件,大約一分鍾不到。
======就是下面的文字(這行不用復制)=============================
@echo off
echo 正在清除系統垃圾文件,請稍等......
del /f /s /q %systerive%\*.tmp
del /f /s /q %systerive%\*._mp
del /f /s /q %systerive%\*.log
del /f /s /q %systerive%\*.gid
del /f /s /q %systerive%\*.chk
del /f /s /q %systerive%\*.old
del /f /s /q %systerive%\recycled\*.*
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
rd /s /q %windir%\temp & %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
=====到這里為止(這行不用復制)==============================================
以後只要雙擊運行該文件,當屏幕提示「清除系統LJ完成!就還你一個「苗條」的系統了!!
註:LJ就是垃圾的意思!這招比那些所謂的優化大師好用!最重要的是無論在公司默認的系統環境還是在自己家中的電腦都不會破壞系統文件
⑥ 如何用批處理命令清理電腦里的垃圾文件
首先建立記事本,再輸入如下內容後保存,注意擴展名要改成.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