Page 1 of 1 1
Topic Options
#47698 - 2003-11-10 03:20 PM close redirectoutput
scolombo Offline
Fresh Scripter

Registered: 2003-02-17
Posts: 31
Loc: Europe
[Moderator (Sealeopard): Moved thread form 'Scripts' to 'Starters' forum due to lack of script in body]

How can I "close" the redirectoutput ?
I'm calling a specific script say scriptB.kix from scriptA.kix.

ScriptB issue the redirectoutput command and goes through it .
When control return to scriptA the redirectoutput is still effective and I get scirptA's output on my log file ( which I don't want )
thanks

[ 11. November 2003, 03:58: Message edited by: sealeopard ]

Top
#47699 - 2003-11-10 03:27 PM Re: close redirectoutput
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
First off, this is not a "Scripts" topic and should have been posted to "Starters". Secondly, the manual clearly shows how to "Close" the output.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#47700 - 2003-11-10 04:04 PM Re: close redirectoutput
scolombo Offline
Fresh Scripter

Registered: 2003-02-17
Posts: 31
Loc: Europe
I'm sorry for posting in the wrong list, but it's no use to be unpolite.
I searched in the manual but found no "close" .
thanks

Top
#47701 - 2003-11-10 04:09 PM Re: close redirectoutput
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Hi,

this part describes it :

quote:
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)

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

REG_MULTI_SZ (multi-string) variables are returned with the pipe symbol ( | ) used as the separator between strings. If a string contains a pipe symbol character, it is represented by two pipe symbol characters ( || ).

REG_DWORD variables are returned in decimal format.

Example: IF RedirectOutput("logon.log") = 0
? "Opened 'logon.log' at " + @TIME ?
ENDIF


redirecting to screen (console), thus 'closing' it.

hth

[ 10. November 2003, 16:11: Message edited by: Jochen ]
_________________________



Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 584 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.1 seconds in which 0.063 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org