Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Running files with the associated program...

Reply
Thread Tools

Running files with the associated program...

 
 
E-Lo
Guest
Posts: n/a
 
      02-06-2008
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,
 
Reply With Quote
 
 
 
 
Gabriel Genellina
Guest
Posts: n/a
 
      02-06-2008
En Tue, 05 Feb 2008 22:34:59 -0200, E-Lo <> 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

 
Reply With Quote
 
 
 
 
E-Lo
Guest
Posts: n/a
 
      02-06-2008
On Feb 6, 6:09 am, "Gabriel Genellina" <gagsl-...@yahoo.com.ar> wrote:
> En Tue, 05 Feb 2008 22:34:59 -0200, E-Lo <BeshrKay...@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


thanks, it worked
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IE programs associated with video files Lookout Computer Support 0 10-06-2007 08:51 PM
Applications associated with device files deet@sorry.me Computer Support 3 06-15-2007 08:24 PM
cannot locate associated aspx files for web project rosettaservice@gmail.com ASP .Net 1 03-10-2007 05:58 AM
packaging a python project and associated graphics files Rajarshi Guha Python 2 10-04-2005 12:08 AM
.dat files all become associated with Nero JD Computer Support 6 01-17-2004 09:30 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57