search_path

Fast search function to locate a file in a given list of directories.

ssCompleteFileName = search_path(ssPath, ssFileName)

Return Value

ssCompleteFileName is the filename including the path or an empty string (“”).

Parameters

ssPath

One or more directories separated by a semi colon ;.

ssFileName

Complete file name without a path, e. g. uniplot.exe.

Example

* search_path(getenv("path"), "latex.exe")
C:\Program Files (x86)\MiKTeX 2.8\miktex\bin\latex.exe

History

Version Description
5.14.0 New

id-1216897