471,348 Members | 1,500 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,348 software developers and data experts.

run application twice using c# code

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?
Jul 21 '05 #1
2 3456
Can you show the code you are using to "try to use process.start(A.exe)
twice"?

Chris

"Napo" <Na**@discussions.microsoft.com> wrote in message
news:E2**********************************@microsof t.com...
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?

Jul 21 '05 #2
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();
"Chris, Master of All Things Insignifican" wrote:
Can you show the code you are using to "try to use process.start(A.exe)
twice"?

Chris

"Napo" <Na**@discussions.microsoft.com> wrote in message
news:E2**********************************@microsof t.com...
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?


Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Amy Snyder | last post: by
2 posts views Thread by Napo | last post: by
5 posts views Thread by Doug Handler | last post: by
7 posts views Thread by tshad | last post: by
reply views Thread by Ronak mishra | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.