>George,
>
>>>George,
>>>
>>>Do you know if it's possible to trap the Windows Shutdown event and insert a VFP-based EXE at that spot? What I want to do is trap for the event and write an entry into a table.
>>>
>>>Thanks!
>>
>>DD,
>>
>>Startup is easy. Just add a shortcut to the Start Menu or the Windows\Run key under HKEY_CURRENT_USER.
>>
>>Shut down is harder. VFP has limited abilities in sinking an event. In fact, I've never tried to do it. However, rather than going that route, my first inclination would be to look at ON SHUTDOWN or an SDI form's QueryUnload Event. I've never tested to see if the former fires in response to the Windows shut down messages. The latter
should, but again, I haven't tested.
>
>
>Hmm.. I suppose I don't really even care if I run a VFP program. ALl I need to do is generate a text entry that contains the time of shutdown and perhaps who was logged on at the time. I could get that info and read it into a file next time the computer starts.
>
>Well, thanks. I'll go dig around on the Microsoft site.....
DD,
You'll have to run some sort of program. The Task Scheduler could be used to handle the startup, but, unfortunately, doesn't have any option for the shutdown.
George
Ubi caritas et amor, deus ibi est