Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Shut Down other Programs
Message
De
22/02/2007 20:46:55
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
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:
01198184
Vues:
18
Naomi,

Thanks for the info but all of these references seem to only discuss identifying and KILLING the processes and/or applications. The REBOOT.EXE program that I call handles "killing" any open programs. I want to stop "killing" them and start shutting them down with a "Save/Quit(exit)" solution.

I've only worked with one simple example of OLE automation and know that you can "SAVE/CLOSE" files using this approach but but all of the examples I see first shows that you create and instance of the object (application) within VFP and then manipulate it. What I want to do is to manipulate (Save/Quit/Exit) a program that is already open ... not just "kill" it.

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 #1121991

>Also see Re: System Process Kill Thread #797595 Message #797697

>Naomi

>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform