To properly compare some files with EDP I need to call the apposite program (plug-in) that converts them to text.
The problem arises when the conversion output file must have a specific extension because its extension is what decides the output format. Of course, in this case the relevant extension is not the input one nor ".txt" (too easy! ).
Is it there a trick to specify the extension of $OUTPUTFILEPATH?
N.B. I like a lot the temporary output file having a unique filename like the one supplied by $OUTPUTFILEPATH.
At the moment I solved the problem using a batch file as follows:
I'm a little confused. $OUTPUTFILEPATH is used internally as an alternative to standard output. It is then used by EDP to read the converted text and compare, while still pretending it deals with the actual file. $OUTPUTFILEPATH also gets the same extension as the actual (input) file.