all groups > dotnet distributed apps > october 2003 >
You're in the

dotnet distributed apps

group:

Working with windows files


Working with windows files Andrés
10/24/2003 11:25:03 AM
dotnet distributed apps:
I=B4m working with C#. And my question is:
How can i open a file with its win application?. For=20
example open a word file with MS Word? or an excel file=20
with MS excel?=20
I=B4m trying to find the way to open a windows application=20
with its path; or to open a file with its path.
Re: Working with windows files Eric Cadwell
10/27/2003 11:30:01 AM
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

Re: Working with windows files Sriram Krishnan [at] gmx [dot] net
11/1/2003 11:25:29 PM

Try using the ShellExecute API function through PInvoke

Sriram

On Fri, 24 Oct 2003 11:25:03 -0700, Andrés
[quoted text, click to view]



--
Re: Working with windows files Santiago
11/3/2003 1:40:46 PM
No need to PInvoke.
Follow Eric's method. It's the easiest and cleanest. Plus it's pure managed
code.

- Santiago

[quoted text, click to view]

AddThis Social Bookmark Button