There is a FAQ that explains this.

DIR() Primer
If (GetFileAttr($basedir+"\"+$name) & 16) will filter out files, showing only folders. Add a NOT to it and you filter out folders, showing only files.

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