Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

  • *Experts*
Posted

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.

Member, in good standing, of the elite fraternity of mentally challenged programmers.

 

Dolphins Software

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...