Procedure Exec (const Path: pathstr; const ComLine: comstr) ;
Exec executes the program in Path, with the options given by ComLine. After the program has terminated, the procedure returns. The Exit value of the program can be consulted with the DosExitCode function.
Errors are reported in DosError.
For an example, see DosExitCode