PPWIZARD is a free preprocessor for HTML, REXX, Visual Basic or any text files.
[Bottom][Contents][Search][Prev]: FormatTime()[Next]: Generate Mask
\ -> Rexx -> Inbuilt PPWIZARD Functions -> GenerateFileName()


This is an inbuilt function function provided by PPWIZARD.

This function returns a filename which is translated in the same way as the "/Output" switch. It also ensures that any directory component of the generated filename exists.

The parameters are as follows:

  1. Name of a file
    This is the name of a file that is used as a basic for conversion using the second parameter.

  2. A "Generate Mask"
    A Generate Mask tells PPWIZARD how to convert the first parameter into a new filename.

The generated filename is processed via FileSlashReduction() (without the second parameter), see the /FILESR for configuration options. Note that extra slash are caused by user error and this feature is used to make PPWIZARD recover from simple errors.


;--- For the current input file work out a good name for a debug file ---
#evaluate '' ^DebugFile = GenerateFileName('<?InputFile>', 'out\*.DBG')^

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

[Top][Contents][Search][Prev]: FormatTime()[Next]: Generate Mask

My whole website and this manual itself was developed using PPWIZARD (free preprocessor written by Dennis Bareis)
Sunday November 05 2017 at 10:00am