Send_picture_automatically/start_scheduler.bat
teddy 699bac8008 feat: 更新定时任务时间并添加批量处理脚本
- 将定时任务时间从12:00改为14:39
- 新增start_scheduler.bat脚本用于管理进程
- 在config.py中添加messages_reciever配置项
- 优化sendmsg.py代码结构,使用配置项代替硬编码
2025-06-24 14:50:22 +08:00

9 lines
323 B
Batchfile

@echo off
:: 查找并停止所有运行 scheduler.py 的 pythonw 进程
for /f "tokens=2" %%a in ('tasklist /fi "imagename eq pythonw.exe" /v ^| findstr "scheduler.py"') do taskkill /F /PID %%a
:: 等待1秒确保进程完全停止
timeout /t 1 /nobreak > nul
:: 启动新的进程
start /min pythonw "%~dp0scheduler.py"