開心生活站

位置:首頁 > IT科技 > 

怎麼用cmd清理電腦垃圾文件

IT科技7.79K

可以用批處理在cmd下刪除電腦垃圾。新建記事本文件,將下列文字複製到記事本中。@echo o

電腦有太多垃圾怎麼辦?今天來給大家分享一個清除電腦垃圾文件的小妙招。

cleanmgr這個是清理的哦其他的Nslookup-------IP地址偵測器 VEMPK-H

工具/材料

·win10系統

可以用批處理在cmd下刪除電腦垃圾。新建記事本文件,將下列文字複製到記事本中。@echo o

·電腦

操作方法

首先我們按住“windows”鍵+“R”,以此來彈出操作窗口。

怎麼用cmd清理電腦垃圾文件

1、首先我們打開電腦桌面,在電腦桌面上點按win+R打開運行,在運行輸入框裏輸入cmd並點擊 確

然後我們在框裏輸入“cmd”,接着按下回車鍵或者直接點擊“確定”按鈕。

怎麼用cmd清理電腦垃圾文件 第2張

下面這段代碼可實現你的需求rem 定義一個標籤:startrem 使用 timeout 限時/

進入控制檯窗口後,我們輸入“cleanmgr”的命令,接着按回車鍵“enter”,就能打開清潔文件的下一步了。

怎麼用cmd清理電腦垃圾文件 第3張

建議用軟件清理,安全乾淨殘留喲,推薦你試試騰訊電腦管家喲打開電腦管家——垃圾清理【掃一掃,可調節

接着系統會開始掃描垃圾文件所在的文件夾。

怎麼用cmd清理電腦垃圾文件 第4張

1,這個是沒辦法的,要麼就任務管理器進行結束多餘進程2,其實進程大多是英文的,很多人都看不懂

等待垃圾文件都掃描出來後,可以根據自己的需求,把不要的文件刪除即可。

怎麼用cmd清理電腦垃圾文件 第5張

很明顯,沒有權限哦,設置一下,吧參考:最好的方法是用註冊表的方法也可以用主策略的

特別提示

cmd這個命令是有很多用途等待大家解鎖的。

1、點擊電腦左下角的“開始”按鈕。2、找到並點擊打開“運行”操作框。3、輸入 “cmd” ,

擴展閱讀,以下內容您可能還感興趣。

如何使用cmd命令窗口清理電腦垃圾

可以用批處理在cmd下刪e799bee5baa6e79fa5e98193e59b9ee7ad9431333363366163除電腦垃圾。

新建記事本文件,將下列文字複製到記事本中。

@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%\LocalSettings\TemporaryInternet Files\*.*"

del /f /s /q "%userprofile%\Local Settings\Temp\*.*"

del /f /s /q "%userprofile%\recent\*.*"

echo 清除系統垃圾完成!

echo. & pause

另存爲bat格式就可以了。

使用的時候只需要雙擊bat文件即可。

如何利用cmd快捷命令清理電腦裏的垃圾(cmd快捷命令)

打開記事本複製以下內容:

@echo off

title Cleaning the system junk files

echo Please wait a moment

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\*.*

del /f /s /q %userprofile%\cookies\*.*

del /f /s /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\*.*"

rd /s /q %windir%\temp & md %windir%\temp

echo ****************************************

echo Cleaning the system to complete rubbish!

echo are you want to clean any more?(y/n)

set /p c=

if /i %c%==n goto 5

echo 是否7a686964616fe58685e5aeb931333330333534清除cookies(y/n)

set /p cookies=

if /i %cookies%==n goto 1

RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2

:1

echo 是否清除Internet臨時文件(y/n)

set /p IETemporary=

if /i %IETemporary%==n goto 2

RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8

:2

echo 是否清除歷史記錄(y/n)

set /p IEhistory=

if /i %IEhistory%==n goto 3

RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1

:3

echo 是否清除表單數據(y/n)

set /p date=

if /i %date%==n goto 4

RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 16

:4

echo 是否清除密碼(y/n)

set /p passwords=

if /i %passwords%==n goto 5

RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 32

:5

echo finish!

pause

----------------到此爲止----------------------------

把這個文件保存爲垃圾清理.bat

運行即可追問請問你發的指令下的 編碼如何使用呢?追答直接輸入

如何利用cmd快捷命令清理電腦裏的垃圾?

cleanmgr這個是清理的哦

其他的Nslookup-------IP地址偵測器 VEMPK-HN6GJ-FP5X5-3E64P-8RV5J

explorer-------我的文檔

logoff---------註銷命令e799bee5baa6e79fa5e98193e78988e69d8331333363396463 tsshutdn-------60秒倒計時關機命令

lusrmgr.msc----本機用戶和組 services.msc---本地服務設置

oobe/msoobe /a----檢查XP是否激活 notepad--------打開記事本

cleanmgr-------垃圾整理 net start messenger----開始信使服務

compmgmt.msc---計算機管理 net stop messenger-----停止信使服務

conf-----------啓動 netmeeting dvdplay--------DVD播放器

charmap--------啓動字符映射表 diskmgmt.msc---磁盤管理實用程序

calc-----------啓動計算器 dfrg.msc-------磁盤碎片整理程序

chkdsk.exe-----Chkdsk磁盤檢查 devmgmt.msc--- 設備管理器

regsvr32 /u *.dll----停止dll文件運行 drwtsn32------ 系統醫生

rononce -p ----15秒關機 dxdiag---------檢查DirectX信息

regedt32-------註冊表編輯器 Msconfig.exe---系統配置實用程序

rsop.msc-------組策略結果集 mem.exe--------顯示內存使用情況

regedit.exe----註冊表 winchat--------XP自帶局域網聊天

progman--------程序管理器 winmsd---------系統信息

perfmon.msc----計算機性能監測程序 winver---------檢查Windows版本

sfc /scannow-----掃描錯誤並復原

taskmgr-----任務管理器(2000/xp/2003)

services.msc回車打開服務

secpol.msc回車進入本地安全設置

control userpasswords2回車

如何使用cmd命令窗口清理電腦垃圾?

使用方法:新建一個文本文檔 然後複製代碼進去 保存 把保存的文本文檔

後綴名 txt 修改e799bee5baa6e79fa5e98193e59b9ee7ad9431333330353630成 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\*.*"

start cleanmgr /SAGERUN:99

如何用“cmd”命令清理系統緩存?

1、首先我們打開電腦桌面,在電腦桌面上點按win+R打開運行,在運行輸入框裏輸入cmd並點擊   確定。

2、然後我們即可打開cmd命令提示符界面來。

3、然後我們在命令提示符窗口中輸入“cleanmgr”,並且敲擊回車鍵進行確定。

4、然後我們在彈出的“磁源盤清理:驅動器選擇”對話框中,點擊倒三角符號,在彈出的下拉列表框中選擇需要清百理垃圾的磁盤盤符,點擊“確定”按鈕。

5、然後我們在彈出的“磁盤清理”對話框中,提示系統正在計算可以在選中要清理的磁盤C中可以釋放的空間。

6、計算完成之度後,彈出“(C:)的磁盤清理”對話框。在對話框中,在需要刪除的垃圾文件前的方框內打上對勾。

7、這裏選擇“回收站”、“縮略圖”以及“臨時文件”,點擊“確定”。

8、彈出“磁盤清理”提醒對話框,是否要永久刪除這些文件,點擊“刪除文件”。系統開始清理垃圾文件了。

9、清理完成之後,再看C盤的可用空間,比之前增大了,清理成功了。