I’m create program and save with Visual studio: test.exe
Then create created program: run.exe, with code:
using System.Diagnostics;
Process run = new Process();
run.StartInfo.FileName = "test.exe";
run.Start();
Why this progran don’t start first program(test.exe)?
If you run this in Visual Studio with F5 (Debugging) or Ctrl+F5 (Without debugging) you must put
test.exeinyour_project_name\bin\Debugoryour_project_name\bin\Runrespectively so it can be run.Or, you must give the exact location to test.exe when initializing process object: