WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

DOS

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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
File Created: 1999:04:15:16:50:20
Last Updated: 1999:04:15:16:50:20