Bill Janssen jans...@parc.com wrote:
For the [services] that are using PythonService.exe, I'd like to check
to see whether the Python module for the service is still present. Is
there any way to retrieve the information about that from the service?
Here's what I came up with:
import sys,
I'm enumerating some service running under XP with
mgr = win32service.OpenSCManager(None, None, 4)
try:
svcinfo = win32service.EnumServicesStatus(mgr)
for svc in svcinfo:
svch = win32service.OpenService(mgr, svc[0],
win32service.SERVICE_QUERY_CONFIG)
try: