I made a small program in C # with a button that should open another .exe file.
It works fine if I use:
private void start_Click(object sender, RoutedEventArgs e) { System.Diagnostics.Process.Start(@"path to file"); }
But no, if I want it to run .exe from the same folder, I basically wanted something like:
private void start_Click(object sender, RoutedEventArgs e) { System.Diagnostics.Process.Start(@"program.exe"); }
What I miss, I tried the solution from this site:
var startIngo = new ProcessStartInfo(); startIngo.WorkingDirectory =
But Visual C # doesn't recognize "ProcessStartInfo" at all ...
source share