KB Article Q72918
-
I'm looking on suggestion on how to check and see if an application is running. The referenced knowledge base article is old and I was thinking that there has to be a better way of doing this in VB6... Thanks to those who responded to the original posts!:cool:
-
I'm looking on suggestion on how to check and see if an application is running. The referenced knowledge base article is old and I was thinking that there has to be a better way of doing this in VB6... Thanks to those who responded to the original posts!:cool:
I'm not sure what you found in the article, there are two popular techniques. 1. Use FindNextWindow, looking for a window with the same name as yours. If found then exit. This is the most common method. It fails (or is at least difficult) if the window title is variable or there are many different windows that might or might not be open. 2. Check the list of running processes looking for your .exe name. There should be only one. If two found then exit. Thanks for the help, Bill