On 4/24/13, Jürgen Hestermann <juergen.hesterm...@gmx.de> wrote: > If a file starts with a dot, it is *not* considered to separate name and > extension on Windows. In this case the dot is part of the name and there is > no extension (unless a second dot exists). A file *must* have a name part, > only the extension can be omitted (on Windows).
Thanks for explaining that. I tried to use the PathMatchSpecEx function to see if that would help. (http://msdn.microsoft.com/en-us/library/windows/desktop/bb773728%28v=vs.85%29.aspx) But, as I later also found on http://qualapps.blogspot.com/2009/08/pathmatchspec-problems.html , it doesn't solve our problem. We may need a seperate FileNameMatchesWindowsWildcards function or something alike, to handle these (borderline?) cases. Bart -- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus