findExecutable()

The function searches for the given executable and returns the full path to it or an empty string if not found.

Synopsis

string findExecutable(string name);

Parameters

Parameter Description
name Name of the executable that should be searched

Return value

The function returns the full path to the given executable or an empty string if no executable could be found.

Error

missing/incorrect arguments

Description

The function searches for the given executable name inside of the system path and if it is available returns the full path to the executable. In general the system path of an operating system is determined by the PATH variable.

For Windows the usual executable extensions are automatically appended. These are determined by the PATHEXT environment variable.

e.g. the function call "findExecutable("foo");" will also find the executable "foo.exe".

Assignment

File function

Availability

UI, CTRL