>The module popen2 is your friend. Or the os.spawn* methods in module
os.

Another (simpler IMO) way to do it is to use os.startfile.

To start Notepad:
>>> import os
>>> os.startfile("notepad.exe")

also, you can start an application from an associated file.

Start MS Word with:
>>> os.startfile("MyDocument.doc")

/Johan Lindberg

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to