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: W13265Filename: Kill one WinBatch script from another.txt