Mailing List Archive

Launching apps for data files (Windows)
Is there a standard way of launching the default windows=20
app from python for a given data file (assuming a registered=20
extension, etc.)?

I've been using varieties of:
os.system('start "c:\\scratch\\test.html"')
but it doesn't seem to be very robust.

I'm guessing there are several ways to do this.
-open application by registered extension
-open in "default web browser"
-open with "default mail program"
-etc??

Thanks for any pointers.

--Jeff
Launching apps for data files (Windows) [ In reply to ]
win32api.ShellExecute was designed for the purpose!

Mark.

Jeffrey Kunce wrote in message ...
Is there a standard way of launching the default windows
app from python for a given data file (assuming a registered
extension, etc.)?