launching a file with its associated application on windows

Alan Miller ajm at enteract.com
Thu Jun 21 13:35:40 EDT 2001


Christian Reyes (christian at rocketnetwork.com) wrote:
>Is there a method that takes a file as an argument and then opens that file
>with the its associated viewer?

Use the Windows "Start" command.  

import os
os.system("start d:\\sample.txt")




More information about the Python-list mailing list