running an .exe file from C# code

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all, I need to know how we can execute an .exe file
from within a method in C#. Any help is appreciated.
Thanks.
 
You can pass the path to the exe file to the static Start method on the
Process class, and it execute the program.

Hope this helps.
 
hi
this will work
System.Diagnostics.Process.Start("path to exe");

regards
Ansil
(e-mail address removed)


[Visual Basic]
Public Class Process
Inherits Component
 

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