Table of Contents

Class CommandLinePathResolver

Namespace
Alternet.Common
Assembly
Alternet.Common.v10.dll

Provides functionality to resolve command line path.

public static class CommandLinePathResolver
Inheritance
CommandLinePathResolver

Properties

MaxPathLength

Gets or sets the maximum allowable length for file paths.

ShellCommandNameWhere
TryGetFullPathForCommandFunc

Gets or sets callback for custom TryGetFullPathForCommand(string) implementation.

UseWhereForGetFullCommandPath

Gets or sets a value indicating whether to use the 'where' command for resolving the full command path on Windows. Default is false.

Methods

DefaultTryGetFullPathForCommand(string)

Default implementation of TryGetFullPathForCommand(string).

GetFullPathUsingWhere(string, string?)

Finds path to executable by it's name using 'where' or similar command.

GetFullPathUsingWhereCached(string)

Tries to get the full path for a given command using command line interpreter.

RunShellCommandAndWaitResult(string, string?, bool)

Executes a shell command and waits for the result.

TryGetFullPathForCommand(string)

Tries to resolve full path for specified command.