"Jochen Riekhof" <
[hidden email]> wrote
>Can it be that this is a bug?
Jochen
Weird. Your test case performs as you say on my XP system. It looks as
though the Windows utility is doing the wild card matching wrong. It goes
very wrong if you have the * wild card, but is also odd if you use the ?
wild card.
I have no explanation, but a possible work round. In your example, if you
put the match string as '??????.txt', it only matches the first file (i.e.
file.txt). It looks as though a match string with n occurrences of ?
followed by '.txt' will match any file whose name is /up to/ n characters
followed by the exact extension. If you can specify the maximum length of
your file names, this might give you a way of doing what you want.
Hope this helps
Peter Kenny