>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. ********************