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”,等待其清理垃圾文件完成即可。
相關文章:
1. Win8設置同時顯示多個時區時間技巧2. centos7使用docker部署gitlab-ce-zh應用詳解3. Win11 USB接口不能用怎么辦? Win11電腦USB接口沒反應的解決辦法4. deepin20桌面圖標樣式怎么修改? deepin更換圖標主題的技巧5. 統信UOS家庭版開始內測 無需分區全自動安裝6. 在vmware虛擬機中安裝Linux系統CentOS7詳細教程7. 統信UOS系統怎么關閉? uos關機的多種方法8. CentOS 6.6系統怎么安裝?CentOS Linux系統安裝配置圖解教程9. 基于 Ubuntu 20.04 LTS,KDE neon 20221222 版本發布10. CentOS7中無法找到pci find device函數的解決方法