I am looking for a function that will use a Windows API to check whether the passed string is a file or a folder.
I used to use GetAttrib() but I can no longer rely on this as it runs into an error on long file names (i.e. when folder path exceeds 247 characters or file fullpath exceeds 260 characters)(218 len if the file is an excel workbook)
I have worked out a function that does this in FileSystemObject but I would prefer to use a Windows API to avoid the performance hit of FSO.
Bookmarks