>Naomi
>
>I've found the problem
>
>lnNewTables = adir(laNewTables, MyNewPath + "*.dbf")
>
>my new path was: "C:/myfolder/data"
>
>It should be "C:/myfolder/data/"
>
>If there's not a "/" in the final of the path, adir fails
>
>Thank you, great help
>
>Moises
I just answered it above without checking your last reply <g>
You're welcome, Moises.
If it's not broken, fix it until it is.
My Blog