Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Transfer control
Message
From
18/05/2001 16:33:44
Patrick O'Neil
American Specialty Information Services
Roanoke, Indiana, United States
 
 
To
17/05/2001 12:21:24
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00508377
Message ID:
00508979
Views:
22
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform