Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / General / January 2005

Tip: Looking for answers? Try searching our database.

run application twice using c# code

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Napo - 19 Jan 2005 10:53 GMT
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?
Chris, Master of All Things Insignificant - 19 Jan 2005 16:07 GMT
Can you show the code you are using to "try to use process.start(A.exe)
twice"?

Chris

> Hi:
>   i  build a .net application named A.exe. I need run this application
[quoted text clipped - 6 lines]
> not
> manu-click?
Napo - 20 Jan 2005 00:53 GMT
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"?
[quoted text clipped - 11 lines]
> > not
> > manu-click?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.