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

Michael Geary Mike at DeleteThis.Geary.com
Thu Jan 22 01:22:40 EST 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.

-Mike





More information about the Python-list mailing list