launching own application using System.Diagnostics
I am trying to launch an application using System.diagnostics.Process.Start. Intaillay , I tried to launch Explorer.exe, with the following code:-
System.Diagnostics.ProcessStartInfo exp = new System.Diagnostics.ProcessStartInfo();
exp.FileName = " explorer.exe ";
This code launched explorer.exe. My question is how does start() method knows Were the “explorer.exe” application is reciding in my system?.
Because, I was trying to launch my own window application called “copy_prj.exe” and I think, I need to tell the above program were it can find it, I mean the path to that “copy_prj.exe” application.
Say for example, my windows application (“copy_prj.exe” )is located in:-
How can I tell the above program to launch my windows application?. Do I need to set “EnvironmentVariables” property?. If, so can you give me an example.