I implemented this functionality a while back but did it with event binding
to windows messaging on the directory - looking for new files (if I recall
correctly). I found it to be much more reliable than timers and much more
responsive. When the file is dropped in the directory the app knows about it
almost immediately rather than waiting for the timer to come to the party.

Just a thought.



-----Original Message-----
From: ProfoxTech [mailto:profoxtech-boun...@leafe.com] On Behalf Of Virgil
Bierschwale
Sent: Wednesday, 16 November 2022 9:48 PM
To: profoxt...@leafe.com
Subject: Re: Howdy Folks

thanks, that is probably what I will end up doing.
just amazes me that I can't find the original tool.
oh well, I noticed a lot of the old foxpro resource sites I used to use are
no longer in existence.


On Tue, Nov 15, 2022 at 5:21 PM Paul H. Tarver <p...@tpcqpc.com> wrote:

> I did something similar back in VFP6 where I added a VFP timer object to
> the
> main page and then we set the interval to 3-5 minutes (I can't really
> remember exactly how long) and the timer method would fire and check to
see
> if a "SHUTDOWN" file  was found and if so, it would display a message to
> the
> user with a 90 second countdown to give them time to close the
application.
> If they didn't respond, the shutdown message form would request a Save
> method on the parent form to save whatever was open at the time and then
it
> would close the application. I also checked for the existence of the
> "SHUTDOWN" file when starting the application and if found, it would
> provide
> a user message and then shut down.
>
> The coding for that is old and antiquated so I'll not embarrass myself by
> posting. But the logic was pretty much as stated. I guess my point is I
> just
> used the native VFP timer object to trigger the automated shutdown
> everything.
>
> Paul H. Tarver
> Tarver Program Consultants, Inc.
>
> -----Original Message-----
> From: ProfoxTech [mailto:profoxtech-boun...@leafe.com] On Behalf Of Virgil
> Bierschwale
> Sent: Tuesday, November 15, 2022 2:26 PM
> To: profoxt...@leafe.com
> Subject: Howdy Folks
>
> Been a long time.
> I'm back maintaining a foxpro system
> Back in the 90's I used a utility that would allow me to put a text file
> named shutdown.txt in the root folder and it would force all users out.
> Been googling and can't find it anymore.
> Any of you remember it?
>
> Looking for a way to kick users out so I can reindex when necessary.
>
> Thanks,
>
> Virgil
>
>
> --- StripMime Report -- processed MIME parts ---
> multipart/alternative
>   text/plain (text body -- kept)
>   text/html
> ---
>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: https://leafe.com/archives
This message: 
https://leafe.com/archives/byMID/015701d8f9aa$b1218470$13648d50$@ozemail.com.au
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to