$OUTPUTFILEPATH
Posted: Fri Jan 03, 2020 8:43 am
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:
Of course, the arguments are "$INPUTFILEPATH $OUTPUTFILEPATH"
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:
Code: Select all
@program.exe -convert %1 "%~dpn2.oddext"
@ren "%~dpn2.oddext" "%~nx2"