otti
asked on
Shut down second instance, but use commandline
Hi!
I want that only one Instance of my program can run. If the user starts a second instance, the commandline from the 2nd should be send to the first instance and the second should be terminated.
This sould be run with D3.
Any ideas?
Bye, Sascha
I want that only one Instance of my program can run. If the user starts a second instance, the commandline from the 2nd should be send to the first instance and the second should be terminated.
This sould be run with D3.
Any ideas?
Bye, Sascha
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hello Kretzschmar,
I looked into your recommended component - yes, it prevents a second instance, but it does not hand on parameters - and that's the tricky part. Maybe I should build such a component myself with the added functionality...
I looked into your recommended component - yes, it prevents a second instance, but it does not hand on parameters - and that's the tricky part. Maybe I should build such a component myself with the added functionality...
well then roadrunner
take a look to this free component (with source and example)
http://www.torry.webnorth.com/vcl/system/maininst.zip
meikl
take a look to this free component (with source and example)
http://www.torry.webnorth.com/vcl/system/maininst.zip
meikl
Hello meikl,
yes, that one seems do do the trick - they also figured a more elegant way of passing the parameter. Anyway, I learned a lot in answering that question - and that's the real value of participating in ExEx.
Hello Otti,
please consider rejecting my answere and try testing the component meikl pointed out.
yes, that one seems do do the trick - they also figured a more elegant way of passing the parameter. Anyway, I learned a lot in answering that question - and that's the real value of participating in ExEx.
Hello Otti,
please consider rejecting my answere and try testing the component meikl pointed out.
ASKER
Hi!
Roadrunner will get the points. Such a detailed answer must be honored. Thank you roadrunner - it does what i need!
To Meikel: Thanks for the hint at Torry's page. I will try it.
Bye, Otti
Roadrunner will get the points. Such a detailed answer must be honored. Thank you roadrunner - it does what i need!
To Meikel: Thanks for the hint at Torry's page. I will try it.
Bye, Otti
there is a component that prevents second instances when dropped at your application:
(free, with source)
http://www.torry.webnorth.com/vcl/system/gmjustone.zip
meikl