- 将定时任务时间从12:00改为14:39 - 新增start_scheduler.bat脚本用于管理进程 - 在config.py中添加messages_reciever配置项 - 优化sendmsg.py代码结构,使用配置项代替硬编码
9 lines
323 B
Batchfile
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" |