Yes, but as the OP wants to open the supplied file in the associated program in Windows, you ought to leave out the first parameter in the Process.Start() command.
On Feb 16, 9:45 pm, ARUN KUMAR <[email protected]> wrote: > System.Diagnostics.Process.Start("winword", "importantstuff.doc") > This is open the document(importantstuff) with microsoft word. > > 2009/2/15 Cerebrus <[email protected]> > > > > > Just call System.Diagnostics.Process.Start(myFileName) and Windows > > will handle the rest. Note that you must make sure that you have > > permissions to access the file in question. > > > On Feb 15, 6:23 am, Michael Gao <[email protected]> wrote: > > > How do you let the user open a selected file with the proper program > > > (NOT mine)? For example, the user selects importantstuff.doc and Word > > > opens the file. I want the user's installed .NET to determine what > > > program to use by querying file associations. > > -- > Regards > ******************* > *C.Arun Kumar * > *******************
