os.system and flow control

Lad export at hope.cz
Fri Oct 15 02:36:20 EDT 2004


Peter L Hansen <peter at engcorp.com> wrote in message news:<DNmdnVdU3aNH8vPcRVn-vA at powergate.ca>...
> Lad wrote:
> > In my program I use 
> > os.popen2('notepad.exe IDPass.txt')
> > to open IDPass.txt file in Notepad window. Users can edit this file
> > but the problem is that if the program runs on Windows 98  , the
> > program does not wait for closing of Notepad window but continues
> > running with the next command after
> > os.popen2('notepad.exe IDPass.txt').
> > If the program runs on XP, the execution of my program is paused until
> > I close the notepad window.
> > How shall I force the WIndows 98 to pause the execution like WIndows
> > Xp ?
> 
> Odd, I recall this being asked recently.  It wasn't you by
> any chance, was it?
> 
> I believe the ultimate conclusion was that you should investigate
> the START command with an option of /WAIT.
> 
Yes, Peter 
I already asked and you already tried to help but your solution did
not work. Can you please give me an example how to use START with
/WAIT option.
Thanks a lot
Lad



More information about the Python-list mailing list