Call another CMD

[Autolink] Menu

 
/* code sequence to call another CMD file from within an CMD file     */

  cmdLine=progDrive || progPath || progName || " " || ProgParm
  "cmd /c " cmdLine
                        /* "RC" contains the return code              */
  if rc <> 0 & rc <> "RC" then
    say "Error: The program ends with RC = " || rc


[Back: Call another REXX program (OS/2 v2.1)]
[Next: Call another CMD by value]