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 first in the project directory and then in the product directory. The function then searches in the system path. If the executable is found, the function 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 functionsAvailability
UI, CTRL