I don't know if you remember back to the good old DOS days, but every directory always displayed a . entry and a .. entry. This is what you're seeing here. Parse the . and .. and use the others. As for the leading dot, just trim it off. Example:
code:

break on
$FileName = Dir("C:\TEMP\*.*")
While $FileName <> “” and @ERROR = 0
? "$$FileName = " + $FileName
$result = Substr($FileName,2,LEN($FileName))
? "$$result = "$result
Dir() ; retrieve next file
Loop

get $


_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.