CreateProcess in NT Service

Dale Burnett denalione at my-deja.com
Thu Aug 10 17:52:10 EDT 2000


Thats what it needed.  Thanks
I had tried that using the first paramater.  Any idea what that didnt
work?

In article <8mv40u$qp2$1 at troll.powertech.no>,
  "Syver Enstad" <syver.enstad at sensewave.com> wrote:
> > h = win32process.createprocess('c:\\python\\myprogram.py',None,None,
> >                   None,1,0,None,None,si)
>
> > I can start other programs this (notepad,wordpad) way from the
> > interactive window.
>
> myprogram.py isn't a program(Win32 executable) like notepad/wordpad
it's
> just a text file so can't create a process from it.
>
> Try something like this instead.
> h = win32process.CreateProcess(None, 'G:/program
files/PYTHON/python.exe
> G:/Documents and Settings/Syver Enstad/Desktop/testEvent.py', None,
None, 1,
> 0, None, None, si)
>
> Note that I have changed the command from using parameter one to
parameter
> two as this enables searching of the path to locate the executable
module.
> (Doesn't matter in this case, but nice to know)
>
>


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list