m_m123 Posted December 10, 2005 Posted December 10, 2005 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 Quote
Administrators PlausiblyDamp Posted December 10, 2005 Administrators Posted December 10, 2005 http://www.xtremedotnettalk.com/search.php?searchid=249250 - you should find enough information to get you started. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
*Experts* DiverDan Posted December 10, 2005 *Experts* Posted December 10, 2005 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. Quote Member, in good standing, of the elite fraternity of mentally challenged programmers. Dolphins Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.