You can already by:

code:

Shell "cmd /c dir c:\ >file.txt"
$=open(1, "file.txt")
$text=""
do
$text=$text+readline(1)
until @error<>0
$=close(1)

but I know what you mean. What would be cool is to make SHELL a function instead of a command where the return value is the output of everything run in SHELL.

eg:
this is the new version of the above code:

$text=shell "cmd /c dir c:\*.txt"

This means that all your old scripts would need $= prepended to the SHELL commands, but I don't run .KIX files with K2k anyway, I call k2k scripts .K2K files instead.

Ruud, is this possible?


cj