Win7電腦清理垃圾的運行命令代碼是什么?
如何清理Win7計算機上的垃圾?您可以通過使用第三方工具手動清理它,或使用運行命令代碼清理win7中的垃圾來解決此問題。那么執行命令代碼是什么? win7電腦快速刪除win7系統垃圾,可以通過運行命令清除文件垃圾。接下來小編我將介紹win7計算機可以清除垃圾的可執行命令的代碼。
操作步驟:
1、首先使用快捷鍵“win+R”打開運行窗口;
2、輸入命令“cleanmgr”,回車確定打開清理窗口;
3、選擇想要掃描清理的磁盤,單擊“確定”即可運行;
4、等待掃描完成;
5、彈出窗口中選擇你想要清理的文件,單擊下方“清理系統文件”即可清理完成;
6、右鍵桌面鼠標滑動到“新建”,單擊選擇“文本文檔”;
7、打開記事本文本文檔,粘貼以下命令,單擊左上角“文件”,選擇另存為,并修改名字為“一鍵清理.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 SettingsTemporary Internet Files*.*”
del /f /s /q “%userprofile%Local SettingsTemp*.*”
del /f /s /q “%userprofile%recent*.*”
echo 清除系統LJ完成!
echo. & pause
8、雙擊運行win7桌面上的“一鍵清理.bat”,等待其清理垃圾文件完成即可。
以上就是小編帶來的win7電腦清理垃圾的運行命令代碼是什么的全部內容,希望可以提供幫助。
相關文章:
1. 去掉系統快捷方式箭頭的途徑——修改注冊表2. YunDetectService.exe是什么進程?YunDetectService.exe禁止使用的方法3. Freebsd 雙硬盤無法啟動的解決辦法4. 支持深色 / 淺色模式,微軟 Win11 Build 25281 為“產品密鑰”窗口啟用新界面5. mac程序沒反應怎么辦 mac強制關閉程序的方法6. rsync結合 inotfiy 實現實時備份的問題7. 世界上最流行的操作系統不是Linux或者Windows,而是MINIX8. freebsd 服務器 ARP綁定腳本9. Win11Beta預覽版22621.1180和22623.1180發布 附KB5022363內容匯總10. Mac版steam錯誤代碼118怎么解決?Mac版steam錯誤代碼118解決教程