You could use the KiXtart function Dir(), see the manual for the syntax. For the bare format you could use:
code:
  $File=SubStr($File,37)

To be sure that only files are resturned, use:
code:
  If (GetFileAttr($File) & 16)<>16
; File, no directory..
EndIf

You could also get the Pipe() UDF to get the result of your command in am array and loop that array! Search the BB to find Pipe().
_________________________
Kind regards,