YES !!!!
Many thanks Jeremy for pushing/pointing me in the right direction. I finally got it to work using the following trick/workaround.
Since the BC program expected an output file (which it then used as input) I could use the same code, but, for ED, deliberately set a temporary output file. Then at the end of the code, with ED I had to ensure the file created was written to the console (as you pointed out). To do this, I used the following Reginald possibility.
Code: Select all
rc = Command('TYPE 'file_after,,'HIDE')
(where file_after was the file created earlier).
The Reginald documentation for command is as follows
To run a shell command (ie, an executable that displays text to a console window and/or expects its input to be typed by an enduser at a console window prompt), you can use the RxCmd add-on DLL. It has a function in it called Command. Its sole purpose is to let you run a console mode command/program.
The only "problem" I have is that it seems as if for each comparison, some console window flashes by (I never have time to see what the window title is). Now this
could be Reginald flashing the screen even though I've specified HIDE as a parm (in which case I'd have to live with this).
Does anyone know of a variation (either with some form of redirection on the TYPE command) or a DOS different command that might be worth trying to avoid the flashing screen.
BTW.
2 comments.
The BC parms - you were right again. I removed the first parm so now I just use %s %t. I changed the code to only expect 2 parms and it worked fine.
My plug-in parms for ED are now
Application H:\A_MS_exe\BC_CONVERT_MFE_FILE.exe
and
Arguments $INPUTFILEPATH
Use exit code Yes, and success exit code 0