Exec function
Prototype
int Exec(str 1, str? 2, str? 3, int? 4, int? 5)
Description
Executes specified executable file.
First argument shall specify filename of the module to execute.
Second argument may be used to specify command line to execute.
Third argument may be used to specify the working directory of the process.
Fourth argument should be set to zero, if you don't wish to wait for the process to finish, and non-zero otherwise. By default, non-zero value is assumed.
Fifth argument can be any of the SW_* constants typically defined in BUILTINS.ISS file. For GUI processes, it specifies the default value the first time ShowWindow is called. By default, SW_SHOWNORMAL (i. e. 1) is assumed.
If fourth argument is omitted or is non-zero, the function returns the exit code of the process. Otherwise, the function result indicates whether the process has been successfully launched (non-zero for success).