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