Re: [python-win32] Launch process

2007-01-25 Thread le dahut
Thanks, but finally I use subprocess.Popen(cmd, shell=True) which sets SW_HIDE in startupinfo properties and with which you can wait for process' exit code using subprocess.Popen(cmd, shell=True).wait() Gabriel Genellina wrote : At Wednesday 24/1/2007 05:40, le dahut wrote: What's the best

[python-win32] Launch process

2007-01-24 Thread le dahut
Hello, What's the best way to launch a process and waiting for its exit code ? I'm looking for something that can take win32con.SW_HIDE as argument (os.spawnv don't). K. ___ Python-win32 mailing list Python-win32@python.org

Re: [python-win32] Launch process

2007-01-24 Thread Gabriel Genellina
At Wednesday 24/1/2007 05:40, le dahut wrote: What's the best way to launch a process and waiting for its exit code ? I'm looking for something that can take win32con.SW_HIDE as argument (os.spawnv don't). CreateProcess and then WaitForSingleEvent on the process handle. Remember to close the