Have a look at this article.
One of many methods to restrict the number of instances of an application,
and pass the command line to the already running instance

http://www.delphi3000.com/articles/article_1654.asp

We use this in a couple of apps and it works well.

Cheers,
Scott.

-----Original Message-----
From: Colin Dillicar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 25 January 2001 17:14
To: Multiple recipients of list delphi
Subject: [DUG]: Detecting other instances


Hi all,

  I know this topic has been canvassed before but I need to be reminded of
the simplest method of detecting whether another instance of my application
is already being run on the same PC.

Cheers

    Colin.
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to