>You could create an application timer that checks the system time and at a specified time, it could shut itself down. The good thing about the app closing itself is that it would know if changes were pending and it could exit gracefully while a thrid-party solution may cause data loss or index corruption.
Or you could have a timer fire every minute or so checking for the existence of a file (called shutdown.fil or something like that). This allows the administrator to shut down all instances of the app at any time and to prevent new instances while the file exists.
HTH
Liam
Liam O'Hagan
MCP VFP Desktop Apps