spawn process in a new console window
Laurent Pointal
laurent.pointal at limsi.fr
Thu Mar 15 05:12:34 EDT 2007
gregpinero at gmail.com a écrit :
> On Mar 14, 9:56 pm, egla... at gmail.com wrote:
>> Hello,
>>
>> I have a script that launches a sequence of other programs, some GUI,
>> some console. I'd like the console programs to launch in their own
>> console window, instead of all of them sharing the script's console.
>> How do I do that?
>>
>
> Would the subprocess module help here? It's available in Python 2.4
> onwards. I think it's supposed to be a one stop shop for all your
> external application launching needs (Python group, please correct me
> if I'm wrong here).
>
> -Greg
>
Try to use "start"
>>> import os
>>> os.system("start cmd")
Open a new console with a cmd shell in it.
See start documentation here http://www.ss64.com/nt/start.html
Or typing help start on the command line.
More information about the Python-list
mailing list