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

Killing and Terminating Apps

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

How to kill another WinBatch script

Keywords:   WinBatch terminate kill close shutdown 

Use the following Intcontrol:
	IntControl(47, "WinBatch Window Title", 0, 0, 0)
closes another WinBatch program.

IntControl 47 allows a WIL script to close another WinBatch program. ("WinClose" cannot close WinBatch programs.)

	p1 = full or partial windowname of a WinBatch program window.
If p1 is the current window, this function is the same as an Exit. Returns @TRUE on apparent success, or @FALSE on apparent failure.

Also see IntControl number 12 if it whines.

In the program, going to be "terminated", add at the top...

	IntControl(12,5,0,0,0)
That means, "When you die, die quietly."
Article ID:   W13265
Filename:   Kill one WinBatch script from another.txt
File Created: 2001:01:15:15:32:14
Last Updated: 2001:01:15:15:32:14