Running files with the associated program...

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Tue Feb 5 23:09:56 EST 2008


En Tue, 05 Feb 2008 22:34:59 -0200, E-Lo <BeshrKayali at gmail.com> escribió:

> How can I start a file (on Windows) with the associated program,

http://docs.python.org/lib/os-process.html#l2h-2760

startfile(path[, operation])
Start a file with its associated application.
When operation is not specified or 'open', this acts like double-clicking  
the file in Windows Explorer, or giving the file name as an argument to  
the start command from the interactive command shell: the file is opened  
with whatever application (if any) its extension is associated.

-- 
Gabriel Genellina




More information about the Python-list mailing list