Win32 blocking spawn
Mark Hammond
MHammond at skippinet.com.au
Thu May 20 19:20:30 EDT 1999
A little painful, but you probably need to go native:
win32process.CreateProcess starts a new program, and returns a process
handle for the new process. To wait for completion, you can use
win32event.WaitForSingleObject()
It is a little painful - mail me for more help (or wait a few months, as
this is covered in detail in our new book :-)
[Alternatively, try experimenting with os.system("start /B cmd") etc]
Mark.
Paul Prescod wrote in message <374474E5.855E25F at prescod.net>...
>I need to run a command line app from a Windows program.
>I need the command line app to come up hidden or at least in a minimized
>window (so I don't think that I can use os.system).
>I need my program to block until it is done (so I don't think that I can
>use ShellExecute or WinExec)
>
>I've got some gross options that involve polling etc. Anybody know
>anything better? Thanks,
>--
> Paul Prescod - ISOGEN Consulting Engineer speaking for only himself
> http://itrc.uwaterloo.ca/~papresco
>
>"It's only a movie. People should get a life."
> - George Lucas (http://www.nypost.com/news/9025.htm)
More information about the Python-list
mailing list