In addition to what others told, you can use this:
oFSO = CREATEOBJECT("Scripting.FileSystemObject")
ofso1=oFSO.GetFolder(yourfolder)
FOR EACH oitem IN oFSO1.Files
? oItem.NAme
endfor....
>Hello people,
>I have had a problem with Adir(). I am trying create a array with all files JPG in one diretory. This directory have 15383 images. Whem I create this array, fox give me this message: "Invalid Subscript reference".
>What I can do to read all files in this directory?
>
>Thanks!
>
>Rômulo