How to start a separate application?

  • Thread starter Thread starter Jeff Connelly
  • Start date Start date
J

Jeff Connelly

Basically just want to "open" a file the same way Windows would do it if you
double-clicked on it, invoking the correct application depending on the file
extension. How to do that from C# code, assuming you just have the file
location and name?
 
The following should do the trick:

System.Diagnostics.Process.Start(@"C:\readme.txt");
 

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

Back
Top