Prevent multiple instances of a program from running

  • Thread starter Thread starter logicalfeline
  • Start date Start date
Hi,

Are you meaning in the same machine?

If so check jon's answer at:
http://www.yoda.arachsys.com/csharp/faq/

IF you want than only one instance of the program be running on a network
you could do this:
Use a file to lock the use to a single machine, of course you will have to
check if the file is pointing to the same machine, in that case you have to
refer to jon's article above


I can give you the code for the latter if you need it.

Cheers,
 
Back
Top