I´m working with C#. And my question is:
How can i open a file with its win application?. For
example open a word file with MS Word? or an excel file
with MS excel?
I´m trying to find the way to open a windows application
with its path; or to open a file with its path.
Thanks.
Try just starting a process with the path of the file. That should load the
registered program:
System.Diagnostics.Process.Start(@\\file2\home$\ecadwell\Desktop\status.doc)
;
HTH;
Eric Cadwell
http://www.origincontrols.com
Try using the ShellExecute API function through PInvoke
Sriram
> I´m working with C#. And my question is:
> How can i open a file with its win application?. For example open a word
> file with MS Word? or an excel file with MS excel? I´m trying to find the
> way to open a windows application with its path; or to open a file with
> its path.
> Thanks.

Signature
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Santiago - 03 Nov 2003 21:40 GMT
No need to PInvoke.
Follow Eric's method. It's the easiest and cleanest. Plus it's pure managed
code.
- Santiago
> Try using the ShellExecute API function through PInvoke
>
[quoted text clipped - 6 lines]
> > How can i open a file with its win application?. For example open a word
> > file with MS Word? or an excel file with MS excel? I?m trying to find
the
> > way to open a windows application with its path; or to open a file with
> > its path.
> > Thanks.