时间:06-17 互联网 佚名
在桌面或其他地方右键—>新建->文本文档。
将文本文档的名称和后缀重命名为“清除系统LJt.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
双击图标即可,稍等一会儿系统就删除了垃圾。如图的进程无法访问等问题,我目前还不知道,以后知道了我会补上的,不过这些对系统没有影响,除非你的电脑是很特别很特别的那种。
使用bat文件重启资源管理器。
我们有时系统卡了,应用程序响应等问题,就没必要关机重启之类的,可以重启重启资源管理器。
方法很简单,与上面类似,就是将第三步的代码改为“taskkill /f /im explorer.exe & start explorer.exe”
使用bat文件清楚桌面多余右键菜单(方法同上)
代码仅供参考
使用bat文件进入任务管理器(方法同上)
这个很安全,代码很短