Table of Contents

Method GetFullPathUsingWhere

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

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 string

Executable name with or without extension.

whereCmd string

Command name used to find path to the executable. Optional. If not specified or Null, uses 'where' command on Windows, and 'which' on other os.

Returns

string