Who knows how to close a DOS minimised no focus window, from a running VB app. I have used everything from AppActivate and SendKeys to APIs such as FindWindow, DestroyWindow. One of the problems I have is that the DOS window title goes from xxx to "Finished - xxx" . This seems to upset the Hwnd.