PPWIZARD is a free preprocessor for HTML, REXX, Visual Basic or any text files.
![]() | ![]() | ![]() | ![]() | ![]() |
FindFileInPath() |
This is an inbuilt function function provided by PPWIZARD.
The purpose of this routine is to search for a file. It gives you full control over where it searches, unlike the FindFile() routine. If you want the current directory searched then you need to specify this!
The return code is the full name of the file or the empty string ("") if it could not be located.
This routine takes 2 parameters as follows:
If performance is an issue you may wish to use Files4Mask() once and use IncludePath() or build up a rexx variable containing a complete list of subdirectories.
Example |
#DefineRexx '' TRACE_ON File1 = FindFileInPath("ppwizard.rex", "+c:\webimage;*PATH;c:\any\dir1\;*REGINA_MACROS;+c:\any\dir2tree"); #DefineRexx