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
 
Back
Top