您现在的位置是:首页 >

win10批处理bat 写个批处理开机自动清除临时文件夹问题给高分

火烧 2021-09-08 10:57:47 1060
写个批处理开机自动清除临时文件夹问题给高分 记事本@echo offecho 正在清除系统垃圾文件,请稍等......del /f / /q % y temdrive%*.tm del /f / /q

写个批处理开机自动清除临时文件夹问题给高分  

记事本

@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

win10批处理bat 写个批处理开机自动清除临时文件夹问题给高分

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 Inter Files*.*"

del /f /s /q "%userprofile%Local SettingsTemp*.*"

del /f /s /q "%userprofile%recent*.*"

echo 清除系统垃圾完成!

echo. & pause

存为LJ.BAT

放到启动里,自动清理垃圾

  
永远跟党走
  • 如果你觉得本站很棒,可以通过扫码支付打赏哦!

    • 微信收款码
    • 支付宝收款码