Click here to return to the KiXtart HelpDesk main page...

KiXtart Command Reference

REDIRECTOUTPUT

action

Allows you to redirect all screen output to a file.

syntax

REDIRECTOUTPUT ("file name", overwrite)

parameters

File name

A string that names the file to which to redirect the output. If this parameter is an empty string (""), output is redirected to the screen.

Overwrite

Optional numeric value indicating whether to clear the output file before writing any data to it. This parameter can have the following values:

0

New output data appended to the existing contents of file.

1

All data in file overwritten when the output is redirected to the file.

remarks

If all output is redirected to a file, the AT, BIG, BOX, and CLS commands are ignored.

returns

0

Output redirected

Error code

Function failed

example

IF RedirectOutput("logon.log") = 0

    ? "Opened 'logon.log' at " + @TIME ?

ENDIF