O
Ohad Young
Hi,
I need to open (launch) an external application from my winform application.
The application is not a dot.net application, for example the windows
calculator.
I'm using the System.Diagnostics.Process class, for example:
....
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.EnableRaisingEvents = false;
proc.StartInfo.WorkingDirectory = @"C:\WINDOWS\system32\";
proc.StartInfo.Arguments = "some argument";
proc.StartInfo.FileName = "calc.exe";
proc.Start();
....
Is there a better way to do it?
How can I close the application programmatically?
Can I close it automatically when my application exits?
Thanks in advance, Ohad
--
Ohad Young
Medical Informatics Research Center
Ben Gurion University
Information System Eng
Office Phone: 972-8-6477160
Cellular Phone: 972-54-518301
E-Mail: (e-mail address removed)
I need to open (launch) an external application from my winform application.
The application is not a dot.net application, for example the windows
calculator.
I'm using the System.Diagnostics.Process class, for example:
....
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.EnableRaisingEvents = false;
proc.StartInfo.WorkingDirectory = @"C:\WINDOWS\system32\";
proc.StartInfo.Arguments = "some argument";
proc.StartInfo.FileName = "calc.exe";
proc.Start();
....
Is there a better way to do it?
How can I close the application programmatically?
Can I close it automatically when my application exits?
Thanks in advance, Ohad
--
Ohad Young
Medical Informatics Research Center
Ben Gurion University
Information System Eng
Office Phone: 972-8-6477160
Cellular Phone: 972-54-518301
E-Mail: (e-mail address removed)