Running files with the associated program...

Adam Pletcher adam at volition-inc.com
Tue Feb 5 20:16:25 EST 2008


import subprocess
proc = subprocess.Popen(r'C:\example.bmp', shell=True)
 
- Adam

________________________________

From: python-list-bounces+adam=volition-inc.com at python.org on behalf of E-Lo
Sent: Tue 2/5/2008 6:34 PM
To: python-list at python.org
Subject: Running files with the associated program...



Hello all,

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

Like if I want to open a bmp file, I want to to be shown in the
program that all bmp files are associated with.

I need a python code to do this.

Thanks,
--
http://mail.python.org/mailman/listinfo/python-list


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20080205/ad3a1adf/attachment-0001.html>


More information about the Python-list mailing list