Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > os.spawn* on Windows

Reply
Thread Tools

os.spawn* on Windows

 
 
Antoine
Guest
Posts: n/a
 
      06-14-2006
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.

 
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
!Windows Live Mail replace Outlook Express on Windows XP and Windows Mail on Vista... Max Burke NZ Computing 8 05-18-2007 12:10 AM
Windows XP Home Connected to Windows XP Pro via TCP/IP Armstrong Wong Wireless Networking 1 11-25-2004 01:12 PM
wireless ad-hoc with Windows XP and Windows 2000 =?Utf-8?B?ZHVtbWthdWY=?= Wireless Networking 1 09-23-2004 11:34 AM
Windows XP laptop and Windows 2000 desktop won't communicate =?Utf-8?B?UmlmbGVtYW4=?= Wireless Networking 0 08-19-2004 03:35 AM



Advertisments