How to start an exe from C#

  • Thread starter Thread starter Guest
  • Start date Start date
Hi Jesper,

You use Process.Start, it's a bit like what you would write under Start->Run
For instance

Process.Start("iexplore.exe"); // starts Internet Explorer, provided iexplore's path is known
Process.Start("somewebpage.html"); // opens default application for handling .html files
Process.Start("c:\\windows\\notepad.exe", "somefile.txt"); // opens somefile.txt in notepad

Happy coding!
Morten Wennevik [C# MVP]
 

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