Help needed (running a program from a program).
The ususal way to do something like this would be to use Exec
Here is a code fragment I found in a book so it should work ok (I
havent tested it)
program parent;
{$M 1024,0,0}
uses dos
begin
swapvectors;
Exec('child.exe','command line arguments');
swapvectors;
end;
Hope this helped
Dave
Quote:
>I have been working on this for a while, and cannot figure it out. I
>am writing this program that calls another application, and when it
>is finished, it needs to return to the main menu.
>The problem is, is that when it gets to the part that runs the
>program, the program is not run. It simply returns to the menu.
>Code available upon request.
>Ben Doyle