>Hey all,
>
>Its been a long while since I posted (did anyone miss me?)
>
>I wrote an application a long time ago (for Ingram Book Company) to break file locks so that production runs could be done during the night, but I forgot the name of the program that did the hard part of the work. Anyone know of a program to break locks on files left open by employees that are required for night-time processing?
>
>
>Al Smith
>(now working for the State of Tennessee)
What I do: The application checks every 2 minutes if there is a file called "maintenance.tmp". If the file exists, goApp.OnQuit() is called (the quit method of the application object - VFX framework).
Unfortunately, this method doesn't guarantee that the application really exits, since the user may have unsaved data ("Do you want to save? Yes / No / Cancel") - but it works quite often.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)