PDA

View Full Version : Close all clients



NewsArchive
03-26-2009, 02:42 AM
Hello,

when using the web update feature i need to close all running clients from my
app. The local app i could close with halt(). But how i can logout and close
all clients?

Thanks much for help

Kai

NewsArchive
03-26-2009, 02:42 AM
.. i mean clients from an multiuser app.

Thanks Kai

NewsArchive
03-26-2009, 02:43 AM
NetTalk can do that for you from your app itself so I presume you can write a small app to close the app and start that from SB installer script

Cordialement - Best regards
Jean-Pierre GUTSATZ

CGF

DMC - Data Management Center
A tool to let you Migrate Import Export Transfer your Data
www.dmc-fr.com
Certified by Microsoft : "Works with Vista" &
"Works with Windows Server 2008"

NewsArchive
03-26-2009, 02:43 AM
Hello Jean-Pierre,

thanks very much for your help. But i will use the idea from jane :-)

Best regards

Kai

NewsArchive
03-26-2009, 02:43 AM
I'm sure there are more elegant ways... but this is what I do for one
multi-user app:

The app executes from the server (i.e., exe and DLL files are there also, as
well as the data).

There's a timer on the app frame window. Every few minutes, it checks for
the presence of a file named SHUTDOWN.DAT in the app's folder on the server.

If it detects that file, it pops up a warning message to the user saying
"app will be closing in 5 minutes - finish what you're doing".

A couple of minutes later, if the SHUTDOWN.DAT file is still present, it
pops up another warning.

A couple of minutes later, if the SHUTDOWN.DAT file is still present, the
app closes.

The app also checks for SHUTDOWN.DAT when it starts up, so new users are
given a "down for maintenance" message if they try to run the app and it
then exits. I have a "secret" command-line switch I can use to start the
app even if everybody else is shut down, so my copy can update data files
with FM3 if needed.

Jane

NewsArchive
03-26-2009, 02:44 AM
COOL!

Friedrich

NewsArchive
03-26-2009, 02:45 AM
Hello Jane,

it´s a nice idea. I will use this solution for me too. Thanks very much!

Best regards

Kai