Win7电脑清理垃圾的运行命令代码是什么?
日期:2024-10-18 / 人气: / 来源:www.rbntl.com
如何清理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 Settings\Temporary Internet Files\*.*”
del /f /s /q “%userprofile%\Local Settings\Temp\*.*”
del /f /s /q “%userprofile%\recent\*.*”
echo 清除系统LJ完成!
echo. & pause
8、双击运行win7桌面上的“一键清理.bat”,等待其清理垃圾文件完成即可。
以上就是小编带来的win7电脑清理垃圾的运行命令代码是什么的全部内容,希望可以提供帮助。
作者:
推荐内容 Recommended
- 华硕灵耀怎么重装系统Win10?华硕灵10-18
- Win7显示屏上下颠倒怎么办?10-18
- Win11主题下载一直转圈怎么办?Wi10-18
- Win7删除文件特别慢怎么解决?10-18
- Win10版本区别对照表10-18
- win11默认登录选项怎么设置?win11设10-18
相关内容 Related
- Hosts文件是干什么的?Win10怎么清理10-18
- Win10如何彻底删除2345主页锁定?10-18
- Win7能够启动explorer.exe还黑屏怎么办10-18
- ROG魔霸如何重装系统Win10?ROG魔霸重10-18
- Win10如何打开隐藏磁盘?Win10打开隐10-18
- Win7鼠标左键不灵敏怎么解决?10-18