Product Site

5.4.8.6. searchPath (Class Method)

Returns a new File instance of the file name, if it can be located along path. Returns .nil otherwise.

The name must be a valid file name without wildcard characters and may optionally include a relative path. The path must be a String, a Collection, or any object that provides a makeArray method. Specified path items must be valid directories separated by the platform's path separator. If omitted, path defaults to the value of the PATH environment variable.

See also RexxUtil function SysSearchPath.

Example 5.245. File class — searchPath method
say .File~searchPath("rexx.exe")     -- e. g. C:\Program Files\ooRexx\rexx.exe
say .File~searchPath("rexx")         -- e. g. /usr/local/bin/rexx