Here's the code:
code:
$Files=WshPipe("%comspec% /c dir /s /b c:\data\scripts\fasttrack",1)
? "There are " + (ubound($Files)+1) + "files."
for each $file in $Files
$file = substr($file,instrrev($file,"\")+1)
? $file
next

You will have to WSHPIPE() from the UDF Library.

[ 07. November 2002, 19:34: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/