Re: Launch an application and continue the script's execution

2008-08-27 Thread Tim Golden
Gabriel Genellina wrote: Start the application in a separate console (using `start "" bat_file` might be the easiest way) and then, within your Python script, wait until the new process is ready. The wmi module by Tim Golden can help e.g. wait unt

Re: Launch an application and continue the script's execution

2008-08-25 Thread Gabriel Genellina
--- El lun 25-ago-08, Marian Popa <[EMAIL PROTECTED]> escribió: Please keep posting on the list. Have you tried what other people already suggested? - I need to access a bat file which opens an application that doesn't have COM interface in order to control it from Python; so I just need to a

Re: Launch an application and continue the script's execution

2008-08-23 Thread M�ta-MCI (MVP)
Hi! More easy: os.system('cmd /c c:\\temp.bat') @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Launch an application and continue the script's execution

2008-08-23 Thread M�ta-MCI (MVP)
Hi ! Replace: os.startfile("launch_trace.bat") by os.startfile('start "" cmd /c launch_trace.bat') and "le tour est joué". @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Launch an application and continue the script's execution

2008-08-23 Thread Gabriel Genellina
En Fri, 22 Aug 2008 07:16:40 -0300, Marian Popa <[EMAIL PROTECTED]> escribió: > Hello, > I am new in Python programming and I have the following problem: > I have a script in which I need to open an application (called from a batch > file - "trace.bat"). For this purpuse, I'm executing the foll

Launch an application and continue the script's execution

2008-08-22 Thread Marian Popa
Hello, I am new in Python programming and I have the following problem: I have a script in which I need to open an application (called from a batch file - "trace.bat"). For this purpuse, I'm executing the following piece of code:   import os, win32process from win32api import Sleep from ctypes