Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > How to disable dos shell window popup for os.system call

Reply
Thread Tools

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

 
 
Peter Gordon
Guest
Posts: n/a
 
      01-22-2004
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?
 
Reply With Quote
 
 
 
 
BW Glitch
Guest
Posts: n/a
 
      01-22-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)
 
Reply With Quote
 
 
 
 
Michael Geary
Guest
Posts: n/a
 
      01-22-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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Main window call Javascript function in popup window, and vice versa Jimmy Javascript 3 08-16-2007 02:48 PM
New Popup Window from an existing Popup Window Raffi Javascript 4 08-12-2004 01:21 PM
Main > Popup > Popup > Close popup AND new URL in main? Jens Peter Hansen Javascript 7 06-19-2004 08:56 PM
Disable TextBox from popup window mg ASP .Net 1 01-04-2004 08:09 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57