Single instance with Arguments

  • Thread starter Thread starter bhu
  • Start date Start date
B

bhu

I want to create a console app which will have only one instance running.
but here is the conditions.
Let us say i have this console app TEST

with arguments
TEST a (running)
TEST a ( should not run exit out)
TEST b (Should run)

the arugument should be part of the instance running test.
with out using Mutex,
any clue will be helpful.
thank you
bhu
 
You are actually better off to use a Mutex (or a lock file) to do this as
opposed to doing things such as listing processes because someone can rename
your process :)

Cheers,

Greg
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top