Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


How to Kill a DOS Window

Keywords:	 Killing DOS Window kill DOS

This example forces a DOS window to close (works in 16 or 32-bit version):

;---------------------------------------

doswin = "MS-DOS"
;---------------------------------------

hwnd = DllHwnd(doswin)
If hwnd
  IntControl(23, hwnd, 1048, 0, 0)  ; undocumented message
Endif

Article ID:   W12892
Filename:   Killing a DOS Window.txt