Then why not update SHELL/RUN along the same lines so that I can do a
Code:

$result=SHELL('%COMSPEC% /C DIR *.*')


instead of
Code:

SHELL '%COMSPEC% /C DIR *.* >%TEMP%\dirlist.txt'


with a subsequent read of the text file or reveting to the likes of the WSHShell() UDF. The output goes into a single variable with CRLF preserved.


Edited by sealeopard (2005-03-23 01:01 AM)
_________________________
There are two types of vessels, submarines and targets.