sysutils.where(file)function

Find a file in the current system path

Parameters

file

The filename to be searched for, as a string or as a File.

Return value

Returns a File if a file was found or nil otherwise.

Example

--! luart-extensions import sysutils local path = sysutils.where("notepad.exe") if path ~= nil then print("Notepad application can be found at "..path.fullpath) else print("Notepad application not found in current system PATH") end