You have misspelled the functionname

Should be:
GetFileAttr

Not:
GetFileAttrib

So to check if "c:\winnt\system" is a directory you should write:

If GetFileATTR("c:\winnt\system") & 16

-Erik