Windows Applications

  • Thread starter Thread starter Andres
  • Start date Start date
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.
 
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
 
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.
 
Back
Top