>I have an XP workstation 20 miles away that I remote into for many hours work each night (I'm even on it right now). Very occassionly, the computer will lose it's LAN connectivity, thus killing my remote connection and it can't be restored without a reboot. Obviously, I don't want to make a 40 mile round trip just to reboot so I wrote a small VFP program that contains a timer that checks for LAN connectivity every 5 minutes. If the connection is ever lost the VFP program forces a REBOOT. This works great, except for an occassional corupted DBF table and/or lost work on an open Excel spreadsheet or Word document.
>
>Is there a way to determine open applications and shut them down from within a VFP application, such as other VFP sessions, Word, Excel, etc. I'd like for the VFP programs to issue a QUIT (to prevent open tables from becoming corrupted) command and for the Word and Excel programs to save any open files before exiting.
>
>Thanks,
>Robert
For first part see
Re: Get a list of running processes Thread #
1114050 Message #
1114067 or
Re: Checking running processes Thread #
1120136 Message #
1121991Also see
Re: System Process Kill Thread #
797595 Message #
797697
If it's not broken, fix it until it is.
My Blog