Wiz, that "should" work... Kix is a totally freeform script language, so it is not reliant on line returns.

As an example i have used the following many times.

shell '%comspec% /c program.exe > "$tempFile"'
$nul = open(1,$tempfile,2) $return = readline(1) $nul = close(1) del $tempfile

That is 2 lines containing 5 different commands.

Bryce

[This message has been edited by Bryce (edited 19 February 2001).]