PPWIZARD is a free preprocessor for HTML, REXX, Visual Basic or any text files.
[Bottom][Contents][Search][Prev]: FindFile()[Next]: Files4Mask()
\ -> Rexx -> Inbuilt PPWIZARD Functions -> 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:

  1. LookingFor
    This is the partial name of a file which we are trying to locate (such as "HTMLPRE.IH" or "include\HTMLPRE.IH").

  2. DirList
    This is a list of items separated by ";" (or colon for unix), each being one of the following:


#DefineRexx '' TRACE_ON
   File1 = FindFileInPath("ppwizard.rex", "+c:\webimage;*PATH;c:\any\dir1\;*REGINA_MACROS;+c:\any\dir2tree");

email me  any feedback, additional information or corrections.
See this page online (look for updates)

[Top][Contents][Search][Prev]: FindFile()[Next]: Files4Mask()

My whole website and this manual itself was developed using PPWIZARD (free preprocessor written by Dennis Bareis)
Saturday May 28 2022 at 2:55pm