launching a file with its associated application on windows

Julius Welby jwelby at waitrose.com
Wed Jun 20 18:28:41 EDT 2001


Try this:

import os
os.startfile(r"C:\yourfile.htm")


"Christian Reyes" <christian at rocketnetwork.com> wrote in message
news:9gr70q$bac$1 at bob.news.rcn.net...
> Is there a method that takes a file as an argument and then opens that
file
> with the its associated viewer?
>
> Thanks,
> christian
>
>





More information about the Python-list mailing list