PalFileFind

Note: This page includes content based on the F1 documentation for Centura development. It may be partially converted to support APF development, but should be regarded to be of uncertain actuality. It is provided as is. Eventually, it should be replaced by documentation available from within Visual Studio.

SalString PalFileFind( SalString sFileName )

The PalFileFind method searches for a file in the following order:

  1. Directory containing executable file for the current task
  2.  Current directory
  3.  Windows directory and Windows system directory
  4. Directories listed in the PATH environment variable

Parameters

Name Description
SalString sFileName File name to search for. The string cannot contain wildcard characters. The file name specified may be a long name or in DOS 8.3 format.

Returns

This method returns the full path if the file name is found, or the null string if the file is not found

Comments

This search order is identical to the one IFS Client Developer uses when searching for e.g. SQL.INI