Hi,
don�t know if there are better ways but I create a (text)file at startup and
check before if there already exits one. See below...
Regards,
Ernst
on preOpenStack
global gCheckInstance
if gCheckInstance is empty then put "first" into gCheckInstance
xx
xx
xx
end preOpenStack
on openStack
checkInstance
end openStack
on checkInstance
global gCheckInstance
if there is a file "rezeptionLog.txt" then
put "second" into gCheckInstance
beep
answer warning "stack xx is already open!!!!" with "OK"
if the shiftKey is down and the controlKey is down and the altKey is
down then
answer "YOu really want to launch a second instance?" & return \
& "If you are not sure ask you administrator!" with "OK" or
"cancel"
if it is "cancel" then
quitMC
else
put "first" into gCheckInstance
end if
else
quitMC
end if
else
open file "rezeptionLog.txt"
close file "rezeptionLog.txt"
end if
end checkInstance
on quitDefinitly
global gCheckInstance
if there is a file "rezeptionLog.txt" then
if gCheckInstance is "first" then
delete file "rezeptionLog.txt"
end if
end if
quit
end quitDefinitly
----- Original Message ----- >
> --------------- MESSAGE metacard.v004.n294.10 ---------------
> From: Scott Rossi <[EMAIL PROTECTED]>
> Subject: Prevent Multiple Launches?
> Date: Tue, 24 Apr 2001 19:49:00 -0700
> Is there any way to prevent users launching multiple instances of an MC
> standalone from the Windows desktop?
--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net
Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.