Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Closing a calling program
Message
De
09/07/2003 06:53:04
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00808384
Message ID:
00808391
Vues:
11
>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

Do not use shell.run or ShellExecute then. Either use "run QUESTPDM.EXE" or if QUESTPDM.EXE is also a VFP application "do QUESTPDM.EXE"

PS: Why don;t you do recording and clearing of IP directly in QUESTPDM.EXE if it's also a VFP app.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform