[python-win32] how to open a file with associated application?

2006-03-02 Thread Tim Roberts
On Thu, 02 Mar 2006 16:13:18 -0500, Michael Li <[EMAIL PROTECTED]> wrote: >In Windows, there is a default way to open a file, >like double click test.txt file, then Notepad will >open the test.txt, double click test.doc, then >MS-Word will open the test.doc. > >If I want to open a specific file,

Re: [python-win32] how to open a file with associated application ?

2006-03-02 Thread Ralf Schmitt
Michael Li schrieb: > hi, > > In Windows, there is a default way to open a file, > like double click test.txt file, then Notepad will > open the test.txt, double click test.doc, then > MS-Word will open the test.doc. > > If I want to open a specific file, test.KEY, > with my application, how do I d

Re: [python-win32] how to open a file with associated application ?

2006-03-02 Thread James Carroll
Hi Michael, Try this: import os os.startfile(r"C:\DEFORM3D\PROBLEM\test.KEY") -Jim On 3/2/06, Michael Li <[EMAIL PROTECTED]> wrote: > hi, > > In Windows, there is a default way to open a file, > like double click test.txt file, then Notepad will > open the test.txt, double click test.doc, then

[python-win32] how to open a file with associated application ?

2006-03-02 Thread Michael Li
hi, In Windows, there is a default way to open a file, like double click test.txt file, then Notepad will open the test.txt, double click test.doc, then MS-Word will open the test.doc. If I want to open a specific file, test.KEY, with my application, how do I do it ? The suffix ".KEY" is fixed. M