>Rather than the WinAPI, I'd recommend using the WSH's Wscript.Shell's AppActivate() method - pass it the name of the executable or part of the title of the top-level Window of an app, and it'll select the app, bring the top-level window to the foreground and activate the top-level window. You'd use it like:
>
>
oShell = CREATEOBJ('Wscript.Shell')
>oShell.AppActivate('CMD.EXE')
Ed,
First of all, it's good to see you posting again.
Second, from previous experience, it appears like we're "tag teaming" again. I suggest an API solution, you a WSH solution. I suggest a WSH based one, you suggestion one from the API.< vbg >
George
Ubi caritas et amor, deus ibi est