Emile van Sebille emile at
Sun Aug 1 13:28:07 EDT 1999

Hi Craig,

This works on WIN95:

os.system(r"start /w c:\windows\notepad.exe")

It leaves a dos window displayed however.  If you change the properties
of the dos window to minimized, the next time through it won't display.
I imagine it's possible to preset this, but I haven't tried.  Does
anyone know how to stop this or get around it?


Emile van Sebille
emile at

Craig Curtis <c.curtis at> wrote in message
news:19990801171952.JFVG5731 at default...
> I am trying to spawn c:\windows\notepad.exe from a Python program.  I
> the python script to wait for Notepad to exit.
> How can I do this?
> I have tried all combinations I can think of using execv, spawn,
system and
> cannot get it to work.
> Could someone please post the exact command sequence to type in.
> Thanks in advance,
> Craig Curtis

More information about the Python-list mailing list