Author |
Topic: Run one program from within another. (Read 1171 times) |
|
TheFamousCash
New Member
member is offline


Posts: 16
|
 |
Re: Run one program from within another.
« Reply #8 on: Mar 21st, 2015, 7:11pm » |
|
I am aware of your dislike for programs using full screen and I agree in principle. There is no point in justifying why I used it in this particular program, it just happens it caused the problem.
Unless I am mistaken, if I *RUN a program from within another, I can't exit the program before executing the command.
The next command after the *RUN command is *QUIT.
If I *QUIT, I can't then *RUN as the program has terminated.
Bob.
|
|
Logged
|
|
|
|
rtr2
Guest
|
 |
Re: Run one program from within another.
« Reply #9 on: Mar 21st, 2015, 9:16pm » |
|
on Mar 21st, 2015, 7:11pm, TheFamousCash wrote:| The next command after the *RUN command is *QUIT. If I *QUIT, I can't then *RUN as the program has terminated. |
|
I don't follow. I was suggesting that you *RUN the external program without waiting for it to complete (semicolon terminator), then immediately execute a QUIT statement in the calling program. That way there's only a very short 'overlap' during which both programs are running simultaneously. That's the closest you can get to a CHAIN-like behaviour with EXEs, which I thought was what you wanted. Maybe I misunderstood.
I should perhaps say, in all fairness, that what you are trying to achieve would be significantly easier in Liberty BASIC!
Richard.
|
| « Last Edit: Mar 21st, 2015, 9:18pm by rtr2 » |
Logged
|
|
|
|
TheFamousCash
New Member
member is offline


Posts: 16
|
 |
Re: Run one program from within another.
« Reply #10 on: Mar 23rd, 2015, 3:12pm » |
|
Just for completeness.
I have successfully achieved the goal.
Customer's disc contains an "exe" "INSTALL" program and a folder containing his main "exe" program and associated files.
Activating the "INSTALL" program loads the contents of the folder (main program and files) to customer's computer and deletes all files (including the "INSTALL" program) on the disc. The main program is then *RUN.
Many thanks, once again, for your invaluable help and patience.
Regards,
Bob.
|
|
Logged
|
|
|
|
|