I can find if the target app is currently running or not by this code. But I want to also find out the execution path of that application. But I can't see a way to do it. Please tell me how can I find it execution path?
static public bool IsProcessRunning(string name)
{
foreach (Process clsProcess in Process.GetProcesses())
{
if (clsProcess.ProcessName.Contains(name))
{
return true;
}
}
return false;
}