How to disable dos shell window popup for os.system call

Michael Geary Mike at
Thu Jan 22 07:22:40 CET 2004

Peter Gordon wrote:
> When I try to execute another program, the dos command shell
> window pops up with the application. For example:
> os.system("notepad") brings up the notepad but I also get the
> command shell window. How do I prevent command shell
> window to open?

Wow, this seems to be the question of the week! (Third time in three days.)

Use os.startfile.


More information about the Python-list mailing list