CALL "C$SYSTEM" USING commandLine [flags] GIVING systemStatus |
commandLine | PIC X(n) | Specifies the operating system command to be executed. | |
flags | any numeric data item | It specifies a value that affect the behavior of the library routine. The value is calculated by combining one or more of the following values, defined in iscobol.def: | |
CSYS-ASYNC | The command specified in commandLine is executed asynchronously. | ||
CSYS-MAXIMIZED | The command window, if any, is shown maximized. It works only on Windows. | ||
CSYS-MINIMIZED | The command window, if any, is shown minimized. It works only on Windows. | ||
CSYS-HIDDEN | The command window, if any, is not shown. It works only on Windows. | ||
CSYS-SHELL | Only on Windows, the system command interpreter cmd.exe is used to run the command specified in commandLine. Note that on Linux/Unix the command interpreter sh is always used, instead, even without this flag. | ||
CSYS-DESKTOP | The command is executed client side in thin client environment. This flag is supported for compatibility. It’s preferable to call the routine using CALL CLIENT in order to obtain the same result. |
call "c$system" using "notepad.exe" |