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

How To
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus

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

Kill Predecessor


Question:

I'm running a compiled WinBatch routine that runs "hidden". I want to start it again, have it detect its predecessor, and stop it.

Answer:

IntControl(1002,0,0,0,0) ; No app icon
IntControl(1003,0,0,0,0) ; No WinBatch dialog
IntControl(12,5,0,0,0) ; Terminate silently
Title = "My-Cool-Program"
If WinExist(Title) Then TerminateApp(Title,2,0)
BoxTitle(Title)
While 1
   TimeDelay(1)
EndWhile

Article ID:   W17938
Filename:   Kill Predecessor.txt
File Created: 2013:12:04:14:03:18
Last Updated: 2013:12:04:14:03:18