How can I launch an external program in VIsual C# in a button click event?
eg: When the user presses a button c:\myapp\myapp.exe is launched.
Thanks, RobX, that solution worked perfectly.
- 1 decade agoFavorite Answer
You use System.Diagnostics.Process
This is how I do it in one of my programs...
Process p = new Process();
p.StartInfo.WorkingDirectory = Path.GetDirectoryName(path);
p.StartInfo.FileName = path;