Did you try it exactly as the example shows? In my 3.62 html help file, it has the following example (I aded the Break and Get):
code:

break on
$FileName = Dir("C:\TEMP")
While $FileName <> “” and @ERROR = 0
? $FileName
Dir() ; retrieve next file
Loop

get $



This returned"
Temp

If I modify as follows:

code:

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

get $


I get the following results:

...
.FFINQU32.ENU
.New Text Document (2).txt
.New Text Document.txt
.

What do you get?

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