1、在“桌面”上新建一个“记事本”,然后我们打开记事本,在记事本中,输入以下代码:
@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 清除系统垃圾完成!
echo. & pause
2、在输入代码之后,我们保存退出,并将文件重命名,名字随便取,但是后缀名一定要是“.bat”,例如“学无忧.bat”。然后直接双击打开运行就可以了。
大家还利用一些电脑管理软件进行清理吗?掌握此方法,能够一键清理系统垃圾文件,十分的实用便捷!
评论列表
希望我的文章对你有所帮助《怎样把预读文件夹里面内容放到bat一键垃圾清理下 清理系统垃圾.bat》
推荐看看《伤心的城市忆城歌词意思 伤心的城市原唱》
推荐看看《抖音客户端怎么开直播 抖音怎么开直播》
1、在“桌面”上新建一个“记事本”,然后我们打开记事本,在记事本中,输入以下代码: @echo off echo 正在清除系统垃圾文件,请稍等...... del /f /s /q %systemdrive%*.tmp del
推荐看看《thinkstation台式电脑显示屏显示无信号输入 thinkstation工作站》
写的太好了!