Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run another exe
Message
From
03/03/2005 06:41:08
 
 
To
03/03/2005 06:19:22
Aaron K. Y. Chu
Health & Care Co. Ltd.
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00992305
Message ID:
00992335
Views:
19
>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"  && however you get path to new version
lcOldVers	= ADDBS( lcDefault)    + "ProgB.exe"  && however you get path to old version
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform