Hello Makd,
This issue appears due to how Microsoft implements wildcards since NTFS appeared.
In particular: "
Certain character combinations appear to be given special meaning in
wildcard specifications:
*.* is mapped to * - match anything, regardless of how many periods it
contains (even 0).
? matches any single character, or if at the end of the name or at a period,
casues all subsequent, consequetive ? to also match. (So foo??.bar will
match foo.bar, foo1.bar and foo2.bar).
.? will match a period followed by any character and will also match at end
of name (so foo.? will match foo and foo.1).
.* will match a period followed by any characteres, and will also match at
end of name (so foo.* will match foo and foo.1 and foo.bar).
*. will match all characters up to and including the last period in the
name. Names that contain no periods are treated as if they end with a
period (soo 'foo' and 'foo.' are the same file).
If none of the above patterns holds true, then * matches any sequence of
characters.
Any character other than . ? * matches only intself (possibly case
insensitively).
These rules are applied to both the long and short names - any file that
matches either name will be returned by FindFirstFileExW (and all the other
FindFile APIs).
"
I would suggest using the generic wildcards (*.*) in the GetFirstFile function and then do filtering afterwards.
Thanks.
Wendy L
LabWindows/CVI Developer Newsletter