使用创建 python 代码更改 pc 服务的状态

问题描述 投票:0回答:0

假设在笔记本电脑中我们启动、停止 Windows 服务(正在运行的后台应用程序),就像这样我必须创建一个 pythone 代码,首先检查服务(应用程序)的状态,如果它处于启动状态更改为停止状态,反之亦然。 enter image description here

我正在尝试在 python 中使用 win32service 模块enter image description here

python service module status
© www.soinside.com 2019 - 2024. All rights reserved.