Shelling Programs from a Slick-CŪ Macro

To execute another program from a Slick-C macro, use the shell built-in, the dos command, or the execute built-in. The latter method is similar to executing a command on the command line, and enables the creation of expressions that execute Slick-C internal commands, Slick-C batch programs, or external programs. If you are only interested in executing an external program, use the shell built-in or the dos command.

Example:

    // Capture the output of Slick GREP and process the error messages.
    dos("-e sgrep DEBUG *.c");
    // Redirect the output of sgrep to a file.
    shell("sgrep DEBUG *.c >junk");
    // Run the DOS dir command and wait for a key to be pressed before
    // closing command shell window.
    shell("dir *.c >junk","w");
    // Display the Calculator dialog box. Show is an internal command.
    execute("show _calc_form");