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 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 thread and process handles when not needed. > > _______________________________________________ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32