Windows Applications

A

Andres

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´trying to find the way to open a windows application
with it´s own path, or to open a windows file with it´s
own path.
Thanks for any help.
 
M

Mattias Sjögren

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?

System.Diagnostics.Process.Start()



Mattias
 
N

NetPointer

dont multipost..
Use Process with ProcessStartInfo object like this..

dim oprocessstartinfo as new processstartinfo
oprocessstartinfo.filename = "djfld"
oprocessstartinfo.useshallexecute = true

process.start(oprocessstartinfo)

this is in vb but u will get the idea i guess..

Regards.
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´trying to find the way to open a windows application
with it´s own path, or to open a windows file with it´s
own path.
Thanks for any help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top