>Sorry... I think I mislead you somehow...
>
>my problem is
>
>program A.exe will check for any update for program B.exe, and the same for program B.exe, however, I'm concerned if I call program B.exe from program A.exe, then the program A.exe cannot be replaced, since it is residual in the memory.
>
>How can I run program B.exe from Program A.exe, then release Program A.exe from memory
Aaron
ProgA: Something like:
lcNewVers = ADDBS( lcProgFolder) + "ProgB.exe"
lcOldVers = ADDBS( lcDefault) + "ProgB.exe"
IF FDATE( lcNewVers, 1) > FDATE( lcOldVers, 1)
Wait Window "Please wait. Loading newer version of program..." Nowait NOCLEAR
COPY FILE ( lcNewVers) TO ( lcOldVers)
Wait CLEAR
endif
Do ProgB.exe
As Tore says, here ProgA is still in memory but very small.
Terry
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.