Process.Start() and PATH environment variable
Not quite sure why the problem occurs. Though, I can think of one solution that works on my machine: var enviromentPath = System.Environment.GetEnvironmentVariable(“PATH”); Console.WriteLine(enviromentPath); var paths = enviromentPath.Split(‘;’); var exePath = paths.Select(x => Path.Combine(x, “mongo.exe”)) .Where(x => File.Exists(x)) .FirstOrDefault(); Console.WriteLine(exePath); if (string.IsNullOrWhiteSpace(exePath) == false) { Process.Start(exePath); } I did find one para which gave me … Read more