Mark and genke,
The replies were appreciated as always.
I already use the closeprocessbyname method. It works.
I'd like to imitate what happens when the UFT stop button is pressed or the script reaches the end. The UFT Terminate method gets called.
I'd like to have it called before closing the UFT process. Can it be called like any other method.
Of couse I can try. I was wondering if anyone has tried this and if it is a good idea.