精确查找 feishu_event_handler.py 脚本是否在运行

CMD 命令

wmic process where "name='python.exe' or name='pythonw.exe'" get commandline,processid | findstr feishu_event_handler

出现一行带路径的信息 → 你的脚本正在运行
什么都不显示 → 没有运行


如果你想 关闭 这个程序

cmd
taskkill /F /PID 这里填PID数字

注意:如果用vscode打开,如果vscode点了右上角的X号关闭,但是python进程还会存在。

如果用cmd的命令行运行,关闭窗口,进程就被关闭了,推荐这种方式

python feishu_event_handler.py
Logo

Agent 垂直技术社区,欢迎活跃、内容共建。

更多推荐