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

BW Glitch bwglitch at hotpop.com
Wed Jan 21 23:32:51 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?

You can use the Win32 extensions by Mark Hammond, as well as one of the 
os.popen (iirc, it's os.popen2). os.system is doing what it is expected, 
btw.

-- 
Glitch

http://andres980.tripod.com/

Nobody wins a war -- somebody loses.
         -- Grears (G1)



More information about the Python-list mailing list