Win7清理垃圾的代碼是什么?Win7清理垃圾代碼的使用教程
Win7系統(tǒng)的電腦在使用久了之后,會(huì)積累非常多的垃圾文件或數(shù)據(jù),這個(gè)時(shí)候我們可以使用運(yùn)行命令代碼清理win7中的垃圾,那么Win7清理垃圾的運(yùn)行代碼是什么呢?下面就和小編一起來來看看吧。
Win7清理垃圾的代碼教程
1、首先使用快捷鍵“win+R”打開運(yùn)行窗口;
2、輸入命令“cleanmgr”,回車確定打開清理窗口;
3、選擇想要掃描清理的磁盤,單擊“確定”即可運(yùn)行;
4、等待掃描完成;
5、彈出窗口中選擇你想要清理的文件,單擊下方“清理系統(tǒng)文件”即可清理完成;
6、右鍵桌面鼠標(biāo)滑動(dòng)到“新建”,單擊選擇“文本文檔”;
7、打開記事本文本文檔,粘貼以下命令,單擊左上角“文件”,選擇另存為,并修改名字為“一鍵清理.bat”:
@echo off
echo 正在清除系統(tǒng)垃圾文件,請稍等。。。。。。
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 清除系統(tǒng)LJ完成!
echo. & pause
8、雙擊運(yùn)行win7桌面上的“一鍵清理.bat”,等待其清理垃圾文件完成即可。
相關(guān)文章:
1. 教你修煉Windows運(yùn)行命令的七種暗器2. 用注冊表關(guān)閉U盤autorun功能禁止U盤自動(dòng)播放3. 偷天換日注冊表里玩隱藏4. 啟動(dòng)Autodesk Desktop Licensing Service時(shí)出現(xiàn)錯(cuò)誤1067:進(jìn)程意外終止怎么辦5. 如何在電腦PC上啟動(dòng)Windows11和Linux雙系統(tǒng)6. Win11怎么修改桌面分辨率?Win11設(shè)置桌面分辨率教程7. virtualbox卸載了有什么影響?Win10手動(dòng)卸載virtualbox8. Win10如何修復(fù)LSP網(wǎng)絡(luò)協(xié)議?LSP協(xié)議異常修復(fù)方法9. 微軟 Win11 首個(gè) Canary 預(yù)覽版 25314 推送 附更新內(nèi)容和升級方法10. Solaris10.0下掛載光驅(qū)
