[REBOL] Re: Double trouble
From: g:santilli:tiscalinet:it at: 23-Jun-2001 14:35
On 22-Giu-01, you wrote:
S> Can anyone suggest a Rebol method (i.e. as far as possible
S> OS-independent) way of my application detecting if there is
S> already an instance of it running on the machine?
Just an idea:
; at the start of the script
if error? try [make-dir %temp-dir] [
alert "Please close other instance first"
; rest of the script
; just before quitting...
(If Windows's TCP stack wasn't completely broken, you could have
simply opened a listen port instead...)
Gabriele Santilli <[giesse--writeme--com]> - Amigan - REBOL programmer
Amiga Group Italia sez. L'Aquila -- http://www.amyresource.it/AGI/