here is a quick and dirty UDF....

you need wshpipe() UDF
and DIRUSE.EXE from the MS resource kit

Code:

for each $line in diruse("\\flag-fs01\resource", "/* /m /,")
? $line
next


Function DirUse($Source, optional $options)
dim $i, $return
$return = wshpipe('diruse ' + $options + ' ' + $source,1)
dim $out[ubound($return)-4]
for $i = 2 to ubound($return)-2
$out[$i-2] = $return[$i]
next
$diruse = $out
endfunction



Edited by Bryce (2004-07-07 12:19 AM)