Many thanks. It fixed the FindClose problem, yet it fails to return the short-filename. Despite several different methods of writing it, it only returns the long filename again when using the GetShortName function. I'm betting it's a stupid mistake on my part or something I'm overlooking, though I just can't get it to work. Andy