Link to home
Start Free TrialLog in
Avatar of Paul Brooks
Paul BrooksFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Runnng applications

I have a delphi application that as part of its process calla a VB.Net executable from a timer. Is it possible to check if the application is already running as part of the timer function as it is imperative only one instance of the vb app runs at a time. If so can sombody give me an example of how to achieve this

Many thanks
SOLUTION
Avatar of mokule
mokule
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of geobul
geobul

It would be much more correct if that check (one instance only) was done by the VB app itself. Then you wouldn't need to worry about that.

Regards, Geo
Avatar of Paul Brooks

ASKER

Geo
I totally agree with your comment but i am even more inept with VB than i am with Delphi so was hoping it would just as well this way round
Regards
As Mokule said. Use findwindow.

If you knew the class name, I would throw that param in (first param), but if the title of the app was constant, then use that.

SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial