Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Shut Down other Programs
Message
De
22/02/2007 19:36:26
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Shut Down other Programs
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows NT
Database:
MS SQL Server
Divers
Thread ID:
01198170
Message ID:
01198170
Vues:
53
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
Fil
Voir

Click here to load this message in the networking platform