General information
Category:
Forms & Form designer
Title:
How can I shutdown my app on all users??
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only