exec (STRING* program, STRING* options);

Starts an external program or batch file.

exec_wait (STRING* program, STRING* options);

Starts an external program or batch file, and waits for its termination.

Parameters:

program - file name of the exe or batch file.
options - command line parameter to be passed to the program.

Returns:

0 if the program was not found or could not be started, nonzero otherwise.

Speed:

Slow

Remarks:

Example:

exec("myprogram.exe",""); 

See also:

path

► latest version online