Open a new instance of a Windows C # application

I work in a Windows environment and I need to open a new instance of my application programmatically, when can I start the application?

I am very grateful for any guidance or help.

+5
source share
5 answers

Try the following:

var info = new System.Diagnostics.ProcessStartInfo(Application.ExecutablePath);
System.Diagnostics.Process.Start(info );
+10
source
System.Diagnostics.Process.Start(Application.ExecutablePath);

For the Winforms application.

+6
source

Process.Start:

Process.Start(@"c:\work\myapp\foo.exe");

:

Process.Start(@"c:\work\myapp\foo.exe", "-a arg1 -b arg2");
+4

, Process.Start().

, , , . , .

+2

! !

, !

My mistake! I understand that you need to call the second existing application from the first.

+1
source

All Articles