os.spawn* on Windows

Discussion in 'Python' started by Antoine, Jun 14, 2006.

  1. Antoine

    Antoine Guest

    Hello list

    I am using Python 2.4 to invoke other programs on Windows XP, using
    syntax like this:

    os.spawnv(P_WAIT, "C:\\my.exe", ("C:\\my.exe",))

    where my.exe is a console-mode program.

    When the above statement is executed, the my.exe program creates a
    window, what used to be called a Dos prompt but is no doubt called
    something else now, and steals the keyboard input focus. This proves to
    be highly annoying (because the window pops up unexpectedly in front of
    my other windows and often steals several characters of what I am
    typing).

    I would rather the 'Dos prompt' was created minimised and did not steal
    the input focus. Is there any way to achieve this end by using a
    different Python command to invoke my.exe? Or would I have to change
    my.exe itself?

    Cheers
    A.
    Antoine, Jun 14, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. e n | c k m a

    Re: How to spawn new Browser windows?

    e n | c k m a, Aug 19, 2003, in forum: HTML
    Replies:
    0
    Views:
    496
    e n | c k m a
    Aug 19, 2003
  2. Tieum

    spawn under windows

    Tieum, Sep 7, 2004, in forum: C++
    Replies:
    1
    Views:
    5,786
    Tieum
    Sep 7, 2004
  3. Derek Basch
    Replies:
    2
    Views:
    1,304
    Donn Cave
    Jan 21, 2005
  4. Ed Hames
    Replies:
    0
    Views:
    373
    Ed Hames
    Apr 16, 2008
  5. Edgardo Hames
    Replies:
    1
    Views:
    348
    Ed Hames
    May 6, 2008
Loading...

Share This Page