Re: [python-win32] Windows services in python

2007-08-31 Thread Dmitry Alekseenko
You're right. Sorry about that. And thank you for help! Dmitry On 8/31/07, Tim Roberts <[EMAIL PROTECTED]> wrote: > > Dmitry Alekseenko wrote: > > win32service methods produces the same problem: > > > > def Enable(self, serviceName, enable, autoStart=False): > > startType = None > > if no

Re: [python-win32] Windows services in python

2007-08-31 Thread Tim Roberts
Dmitry Alekseenko wrote: > win32service methods produces the same problem: > > def Enable(self, serviceName, enable, autoStart=False): > startType = None > if not enable: > startType = win32service.SERVICE_DISABLED > elif autoStart: > startType = win32service.SERVICE_A

Re: [python-win32] Windows services in python

2007-08-31 Thread Dmitry Alekseenko
win32service methods produces the same problem: def Enable(self, serviceName, enable, autoStart=False): startType = None if not enable: startType = win32service.SERVICE_DISABLED elif autoStart: startType = win32service.SERVICE_AUTO_START else: startType = wi

Re: [python-win32] Windows services in python

2007-08-31 Thread Tim Roberts
Dmitry Alekseenko wrote: > Hey guys, > > I've written the following function to enable/disable windows services: > > def Enable(self, serviceName, enable, autoStart=False): > startType = None > if not enable: > startType = win32service.SERVICE_DISABLED > elif autoStart: >

[python-win32] Windows services in python

2007-08-31 Thread Dmitry Alekseenko
Hey guys, I've written the following function to enable/disable windows services: def Enable(self, serviceName, enable, autoStart=False): startType = None if not enable: startType = win32service.SERVICE_DISABLED elif autoStart: startType = win32service.SERVICE_AUTO_STA