Aahz wrote:
In article <[email protected]>,
News123  <[email protected]> wrote:

Is there a python way to register new windows services.

I am aware of the
instsrv.exe program, which can be used to install services.
I could use subprocess.Popen to call

instsrv.exe "service_name" program.exe

but wondered, whether there's already an existing function.

Use the win32 package.

Indeed, there's some intersting code in this area here:

http://svn.zope.org/Zope/trunk/src/nt_svcutils/service.py?rev=104819&view=auto

http://svn.zope.org/Zope/trunk/src/Zope2/Startup/zopectl.py?rev=105396&view=auto

...particularly in the do_install function in the latter...

Chris


--
Simplistix - Content Management, Batch Processing & Python Consulting
            - http://www.simplistix.co.uk

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to