469,266 Members | 2,009 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,266 developers. It's quick & easy.

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

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?
Jul 18 '05 #1
2 3106
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)
Jul 18 '05 #2
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
Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by BARBARA FLOYD | last post: by
9 posts views Thread by Christopher Benson-Manica | last post: by
4 posts views Thread by Phillip Parr | last post: by
14 posts views Thread by D. Alvarado | last post: by
2 posts views Thread by nyousfi | last post: by
7 posts views Thread by anthony.turcotte | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.