On 12/3/14, Ralf Quint <freedos...@gmail.com> wrote: > On any DOS based OS (that includes OS/2 and Windows), the "?" wildcard > character will find any character, including no character at all in that > position. So in your example, t?.txt will find t.txt and tx.txt but not > txy.txt. It will not return any filename longer than your search mask, > but return shorter filenames. This is (should be) a functionality of the > underlying system calls.
Windows.FindFirstFile however treats ? as exactly 1 character AFAIK. And is I'm not mistake this was also the case with TP in the old days. Bart _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal