失眠网,内容丰富有趣,生活中的好帮手!
失眠网 > win7电脑清理垃圾的运行命令代码是什么

win7电脑清理垃圾的运行命令代码是什么

时间:2022-05-19 14:55:00

相关推荐

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电脑清理垃圾的运行命令代码是什么的详细内容,想要快速清理系统垃圾的小伙伴可以通过上述两种方法进行删除,快来试试吧。

如果觉得《win7电脑清理垃圾的运行命令代码是什么》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。