PPWIZARD is a free preprocessor for HTML, REXX, Visual Basic or any text files.
![]() | ![]() | ![]() | ![]() | ![]() |
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:
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.
Example |
;--- For the current input file work out a good name for a debug file --- #evaluate '' ^DebugFile = GenerateFileName('<?InputFile>', 'out\*.DBG')^