How to execute a cmd line program without invoking console window?

rbt rbt at athop1.ath.vt.edu
Tue Mar 29 23:34:42 CEST 2005


Tian wrote:
> In Windows, I have been simply using os.system() to run command line
> program in python. but there will be a black console window. How can I
> run the program without invoking that window? i guess there are some
> function with which I can redirect the output?
> 

name your scripts with .pyw extensions instead of .py extensions



More information about the Python-list mailing list