Please enable JavaScript to view this site.

A-Shell 6.5 Development Notes

New subroutine MX_SRCHPATH (191) searches for a file in the system path.

xcall MIAMEX, MX_SRCHPATH, file, foundpath

Parameters

file  (String)  [in]

filename to search for (no wildcards or directory)

foundpath  (String)  [out]

returns "" if not found, else the full path.

Comments

The search path is system dependent, but normally includes the current directory, the directory from which the A-Shell executable was loaded, plus all the directories included in the PATH environment variable.

One use would be to check whether a particular external command exists before attempting to launch it via HOSTEX.SBR.