Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shut Down other Programs
Message
 
 
To
22/02/2007 19:36:26
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows NT
Database:
MS SQL Server
Miscellaneous
Thread ID:
01198170
Message ID:
01198174
Views:
11
>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 #1121991

Also see Re: System Process Kill Thread #797595 Message #797697
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform