>Kevin,
>
>>Doug
>>
>>>I've created a VFP-based service that works great for startups. I think until I discover a Windows API call I'll go the DO WHILE + sleep route. I can just write a registry entry every 10 minutes or so and then when I next start up fetch it and update where I need to.
>>
>>I thought you wanted something to run when the user shut's down, so surely when your VFP service shut's down with the machine, it can record the info then?
>>
>>Kev
>
>Well, that's what I thought too but that doesn't seem to be the case. I'll have to fool around a little more with it.
So does that mean you have tried this? If you have used
ON SHUTDOWN DO blah blah
, then the app should shutdown successfully, logging details on the way out.
Kev