>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?
See also
Re: VFP auto-clearing feature Thread #
616964 Message #
617326Re: Time Out Thread #
571751 Message #
571815
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison