company logo

Redirect OShell output (REDIR)

The function allows the permanent redirection of output for the subsequent commands. Only data output is redirected to the file location passed to the command. Error and system messages are still written to the standard output. Calling redir without parameter will reset the redirection of the output.

Redirection of the output is also reset at the end of a do block, when being specified within the block or at the end of a called procedure, when being activated within a procedure.

Parameters:

  • path - location (file name) for redirection.

Syntax:

  redir [path]

Examples:

  redir %HOME%/out.txt  // write output to file out.txt

  redir                 // reset redirection for getting the output on

                        // standard output