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.
Try the following:
var info = new System.Diagnostics.ProcessStartInfo(Application.ExecutablePath); System.Diagnostics.Process.Start(info );
System.Diagnostics.Process.Start(Application.ExecutablePath);
For the Winforms application.
Process.Start:
Process.Start(@"c:\work\myapp\foo.exe");
:
Process.Start(@"c:\work\myapp\foo.exe", "-a arg1 -b arg2");
, Process.Start().
Process.Start()
, , , . , .
! !
, !
My mistake! I understand that you need to call the second existing application from the first.