run application twice using c# code

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi:
i build a .net application named A.exe. I need run this application
twice using c# code in another application. i try to use
process.start(A.exe) twcie, but it failed. Because the second start will use
the existed process. So only one application run.
I can use mouse to run this application twice, and there are two A.exe
processes in processed pool. So how can i do the same work using code but not
manu-click?
 
Can you show the code you are using to "try to use process.start(A.exe)
twice"?

Chris
 
private void run()
{
Process proc = new Process();
proc.StartInfo.FileName = @"D:\A.exe";
proc.StartInfo.Arguments = "";
proc.Start();
}

then i call this method twice
run();
run();
 
Back
Top