Re: preventing Delphi app from running more than once

[ Delphi Forum ]

Posted by Rbrrneck on May 04, 2003 at 08:57:15:

In Reply to: preventing an .exe from running if another user is already running it posted by BeckyR on April 28, 19103 at 21:18:35:

You just have to improvize...

Put this function in your program:
when the application is started it checks if a file named asd.chk exists, if not then it creates it, if it exists, then it shuts down...dont forget to delete that file whan you close your app...


Related Articles and Replies:

[ Delphi Forum ]