next up previous contents index
Next: FExpand Up: Functions and Procedures Previous: EnvStr

Exec

   

Declaration:

Procedure Exec (const Path: pathstr; const ComLine: comstr) ;

Description:

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:

Errors are reported in DosError.

See also:

DosExitCode

For an example, see DosExitCode



Michael Van Canneyt
Thu Sep 10 13:59:33 CEST 1998