How can I close another application from my code if I know the caption on the titlebar.
Printable View
How can I close another application from my code if I know the caption on the titlebar.
I will have to find the code I wrote for doing this - it can be done, you just have to get the handle of the window that you want to close and then find what process owns it - then it is as simple as finding the process ID and killing it.
I will post a solution to this as soon as I dig it out of my code archive
try to look at this thread