Page 1 of 1

FindFile wildcard search

PostPosted: July 22nd, 2012, 1:21 am
by AxelLang
Hi Kambiz,

I try to search *.doc files in the fileName and the result brings *.doc and *.docx files.
The search only works, if I leave the filename empty and use file filters:
Code: Select all
FindFile.Criteria.Files.Filters.Add('>*.doc')
FindFile.Criteria.Files.Filters.Add('<*.*')

I try to test if this only happens with *.doc files. I create some files with an fantasy extension.
blabla.abc, blaablaa.abcd and so on. A search with *.abc show all files *.abc, *.abcd, *.abcde.

Is this a Bug or a normal behavior?

Regards

Axel

Re: FindFile wildcard search

PostPosted: July 23rd, 2012, 9:05 pm
by Kambiz
Hi Axel,

FindFile relies on Windows API. And, this is the way Windows treats wildcards. You may want to try dir command or Windows search to check it out.