@Execute
Syntax
@Execute(OSPATH1;TEXT2);
@Execute(OSPATH1;TEXTLIST2);
@Execute(OSPATH1;TEXT2;MODE3);
@Execute(OSPATH1;TEXTLIST2;MODE3);
Description
Starts an OS/2 EXE program OSPATH OSPATH1 with the parameters TEXT TEXT2 in mode FN MODE3 as a child process of the API Engine.
MODE3:
0 = Starts the child process and continues the API Engine program in parallel.
1 = Starts the child process and waits for it to terminate.
1 = Start the child process and wait for it to finish.
If the @function is called with two parameters, MODE3 is assumed to have the value 0. In addition, @Execute can also be used to execute OS/2 CMD files.
For parallel execution, the process ID of the child process is returned; for execution with waiting, the return code of the OS/2 EXE is returned.
For parallel execution, the process ID of the child process is returned; for execution with waiting, the return code of the OS/2 EXE is returned.
Example: @Execute(OSPATH1;TEXT2)
OSPATH1:="CLEAN.EXE";
TEXT2:="*.BAK";
@Execute(OSPATH1;TEXT2);
in an OS/2 full screen session or OS/2 window.
Here the function waits for the program to terminate.
The function does not wait for the XCOPY program to finish.
Example: @Execute(OSPATH1;TEXTLIST2)
OSPATH1:="CLEAN.EXE";
TEXTLIST2:="*.BAK":"*.BK!":"*.OLD";
@Execute(OSPATH1;TEXTLIST2);
in an OS/2 full screen session or OS/2 window.
Here the function waits for the program to terminate.
The function does not wait for the XCOPY program to finish.
Example: @Execute(OSPATH1;TEXT2;MODE3)
OSPATH1:="XCOPY.EXE";
TEXT2:="C:\\NOTES\\*.NSF H:\\BACKUP\\NSF /s/e";
MODE3:=0;
@Execute(OSPATH1;TEXT2;MODE3);
in an OS/2 full screen session or OS/2 window.
Here the function waits for the program to terminate.
The function does not wait for the XCOPY program to finish.
Example: @Execute(OSPATH1;TEXTLIST2;MODE3)
OSPATH1:="XCOPY.EXE";
TEXTLIST2:="C:\\NOTES\\*.NSF":"H:\\BACKUP\\NSF":"/s/e";
MODE3:=1;
@Execute(OSPATH1;TEXTLIST2;MODE3);
in an OS/2 full screen session or OS/2 window.
Here the function waits for the program to terminate.
Here the function waits for the XCOPY program to terminate.
Note : This text was machine-translated and may contain inaccuracies.
