Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Closing a calling program
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Closing a calling program
Divers
Thread ID:
00808384
Message ID:
00808384
Vues:
60
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform