Method GetFullPathUsingWhere
GetFullPathUsingWhere(string, string?)
Finds path to executable by it's name using 'where' or similar command.
public static string? GetFullPathUsingWhere(string exeName, string? whereCmd = null)
Parameters
exeName
stringExecutable name with or without extension.
whereCmd
stringCommand name used to find path to the executable. Optional. If not specified or Null, uses 'where' command on Windows, and 'which' on other os.