CALL "C$RUN" USING COMMAND-LINE, GIVING STATUS-VAL
COMMAND-LINE PIC X(n) | Contains the operating system command line to execute. |
STATUS-VAL Any numeric data item | Returns 0 if successful or -1 if not. |
C$RUN sets STATUS-VAL to -1 if the call fails or to 0 if it succeeds.
C$RUN is implemented only under the Windows version of ACUCOBOL-GT. On other systems, it always returns 1.
C$RUN is supported in Thin Client environments. To execute a program on the display host in a thin client environment, add the prefix @[DISPLAY]: to the name of any program that resides on the client machine. For example:
C$RUN "@[DISPLAY]:C:\notepad myfile.txt