How to bring subprocess to the foreground?

Diez B. Roggisch deets at nospam.web.de
Sat Sep 6 16:13:22 CEST 2008


dudeja.rajat at gmail.com schrieb:
> Hi,
> 
> I've a batch file that I open with the subprocess .Popen() . When this
> batch file is run I want to bring it to the foreground.
> 
> Please suggest how can I do this?

You can't. You can capture the stdout using the pipe-arguments, and in 
your main-process, read that and write it to the main process' stdout.

Diez



More information about the Python-list mailing list