Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Transfer control
Message
De
18/05/2001 16:33:44
Patrick O'Neil
American Specialty Information Services
Roanoke, Indiana, États-Unis
 
 
À
17/05/2001 12:21:24
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00508377
Message ID:
00508979
Vues:
21
>I have an app (first.exe) and I want to transfer the control to another exe ( second.exe) wich must to delete the first.exe.
>Some ideeas ?
>Thanks


*---------------
in the first.exe ...

RUN /N second.exe

the /N starts the second, without waiting, in which case,
first.exe can immediately
CLOSE ALL
CANCEL

then in second.exe do
LOCAL File_To_Delete
File_To_Delete = first.exe
DELETE FILE (File_To_Delete)

if you cannot be sure that the first.exe has exited by the
time you are ready to delete it in second.exe, use the API
functions to see if it is still running.
********************
patrick
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform