Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I shutdown my app on all users??
Message
From
16/05/2002 01:10:58
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
How can I shutdown my app on all users??
Miscellaneous
Thread ID:
00657264
Message ID:
00657264
Views:
52
At any time, up to 6 users might be running my app (in .exe form) from the server, and have various tables open. Sometimes, I want to close all open forms, exit all users out of the system, close all tables, and lock them out so I can do some maintenance. I have to go to each PC and log them out, and tell them to stay out. How can I automate this while causing the least damage?

Most users will only be viewing reports or other data, and only small chance they will actually be in the middle of an editing operation.

Here is my initial effort... To kick them out, I added a timer to my base class form to look for a certain text file in a certain place on the server every 10 seconds. If it finds it, it calls a CLEAR EVENTS, which allows the main .prg to exit. So I made a .bat to create the "kick-them-out" file, and it works fairly well. Also, when the main program is executed, it checks for this lock-out file, and if it finds it, it will exit them out before any forms are loaded.

Only weird thing is, if someone is viewing a report, it doesn't exit properly.

Any other ideas on how to do this?
Next
Reply
Map
View

Click here to load this message in the networking platform