Hello,
I want to find out how can I run a .exe file from my code? for example, I want to run the file "E:\program.exe" whenever a specific button on my form is pressed.
I will be very happy if you can help me.
Thank you very much
It seems that PlausiblyDamp's link is broken, atleast on this computer anyway.
Try:
System.Diagnostics.Process.Start("E:\program.exe").
There are a lot of other ways to start your file including parameter settings etc. Check out the Process namespace.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.