企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
虚拟机如果长期运行发单不关机时,会产生很多临时文件,可以参考这个快速清理。 [https://zhidao.baidu.com/question/12054365.html](https://zhidao.baidu.com/question/12054365.html) 拷贝到记事本里去,然后后缀名保存为.bat就好了 ![](https://box.kancloud.cn/1b2fa1ce90e588bee6a3e4591c43b129_129x119.png) 创建好后可以到控制面板-管理工具-任务计划程序中,创建基本任务,让清理程序每天定时运行 ``` @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 清除系统完成!稍后自动关闭窗口 ping -n 120 127.1 >nul echo. & exit ```