just from the code that shawn posted I slammed this together, but I don't know enought to handle the error channel and such...
or the best way the pass the return back.
code:
break on
$return=WSHPipe("dir \\a06\logon\*.kix")
? $return
$pipearray=split($return,chr(10))
for each $line in $pipearray
? "."+$line
next
get $k
quit
;******************************************************************
function WSHPipe($cmd, Optional $environment)
if $environment
$cmd="/e $environment $cmd"
endif
$cmd="%comspec% /c "+$cmd
$WshShell=CreateObject("WScript.Shell")
$oExec=$WshShell.Exec("$cmd")
$WSHPipe=$oExec.StdOut.ReadAll
$WSHPipeErr=$oExec.StdErr.ReadAll
endfunction