Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Closing a calling program
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Closing a calling program
Miscellaneous
Thread ID:
00808384
Message ID:
00808384
Views:
61
I have a program called NEIL.PRG which when ran inserts an IP address into a shared table. After this command it then calls an application called QuestPDM.EXE. I will then continue to work on the QUESTPDM.EXE application. Once I have finished I will close the QUESTPDM application down. At this point is there anyway that my program NEIL.PRG can continue to execute AFTER the QUESTPDM application has closed down. I basically want NEIL.PRG to sit in the background until QUESTPDM closes. Then I wwnt the program NEIL.PRG to delete the IP Address from the shared table again.

I have attached the following code:

---------NEIL.PRG----------------------

_screen.Visible=.f.

oIPSocket = CreateObject("MSWinsock.Winsock")

USE "U:\IPAddresses\IPaddresses.dbf"
INSERT INTO ipaddresses (ipaddress) ;
VALUES (oIPSocket.LocalIP)

#define SW_SHOW_NORMAL 1
#define SW_SHOW_MINIMIZED 2
#define SW_SHOW_MAXIMIZED 3
oShell = createobject("WScript.Shell")
oShell.Run("c:\questpdm\questpdm.exe",SW_SHOW_NORMAL,.F.)


DELETE
Neil Lewis
IT R&D Manager
Velmore Ltd
Next
Reply
Map
View

Click here to load this message in the networking platform