Information générale
Catégorie:
Codage, syntaxe et commandes
Titre:
Shut Down other Programs
Versions des environnements
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement