os.system and flow control
Peter L Hansen
peter at engcorp.com
Thu Oct 14 08:23:54 EDT 2004
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.
-Peter
More information about the Python-list
mailing list