running an .exe file from C# code

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.
 
N

Nicholas Paldino [.NET/C# MVP]

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.
 
G

Guest

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

Top