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 ENDIFAlternatively, you could try one of the techniques discussed a long time ago about trying to figure out if a removable drive (floppy disk) was there and writeable -- by going ahead and trying to create a file then simply trapping any I/O errors transparently.