>Thanks Sergey, that's much cleaner than my attempt. Curious about something else now. You used macro expansion rather than EXEXSCRIPT. Any reason to prefer one over the other?
>
EXECSCRIPT executes in its own environment that may be different than current program environment (different SET settings, paths, etc.)
If it's not broken, fix it until it is.
My Blog