>DECLARE integer FindFirstFile IN Win32API AS FindFirst ; > STRING @lpfn, STRING @lpfbuf >lpfbuf = space(512) && just to be on the safe side >lpfn = 'C:\WINDOWS' && this is the directory name we're looking for >h = FindFirst(@lpfn, @lpfbuf) >IF (h = -1) > ? "We know it's not there" >ELSE > ? "We now have to figure out if it's really a folder or just a file." > IF BITAND(Asc(SubStr(lpbuf, 1, 1)), BITNOT(16)) > ? "This, according to my research means it's a folder" > ELSE > ? "If that bit wasn't set, then it's not a folder" > ENDIF >ENDIF >I've tested that function. Isn't this the same as: