Page 1 of 1 1
Topic Options
#78318 - 2001-08-22 10:21 AM REDIRECTOUTPUT
JensKalski Offline
Starting to like KiXtart

Registered: 2000-12-13
Posts: 186
Loc: Germany
Hello,
I'm trying to output the IPCONFIG-output to a file with the following code and the outputfile is created, but there is only the "OK = 0" and the REDIRECT-output is showing at the screen.

code:
BREAK ON
? "Anfang"
$OK = REDIRECTOUTPUT("%TEMP%\IPConfigAll.txt", 1)
? "OK = $OK"
SHELL "IPCONFIG /ALL"
$OK = REDIRECTOUTPUT("")
? "OK = $OK"
? "Erledigt"

_________________________
Jens Kalski

Top
#78319 - 2001-08-22 03:57 PM Re: REDIRECTOUTPUT
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
I believe REDIRECTOUTPUT is to redirect output that would normally go to the Kix console to a file. To redirect output from the IPCONFIG command, you need to use the DOS redirector.

code:

SHELL "%comspec% /c IPCONFIG /ALL > c:\ipconfig.txt"

_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#78320 - 2001-10-14 06:17 AM Re: REDIRECTOUTPUT
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear Jens,

LLigetfa was right. Any shell or run command which will produce
output will be send to his "console-box". Those commands are running in their
own environment space.
The RedirectOutput functions works only for the output generated by kixtart
statements.
Greetings.

_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
Page 1 of 1 1


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

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

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