using windows defaults for executing/examining files

Diez B. Roggisch deetsNOSPAM at web.de
Wed Aug 25 14:05:34 EDT 2004


Micah wrote:

> Is there an os module call to request that Windows handle a specific file
> using the default handler?  For example, if I pass it a .txt file it opens
> notepad but if I pass a .wav file it opens Windows Media Player.

os.startfile()

-- 
Regards,

Diez B. Roggisch



More information about the Python-list mailing list