>Thanks Cetin. It works.
>
>But the utility which I want to kill askts for [OK] [CANCEL]
>Button. Can I pass [ENTER] key.
>
>I have tried
>oShell.SendKeys('{ENTER}')
>
>But I think the command
>=SendMessage(hWnd, WM_CLOSE, 0, 0) waits for [OK] [CANCEL] for user.
>
>Can I kill it completely.
>
>
>Regards
Yes you can. Check Q178893 on MSDN KB.
Cetin