>Nadja! I know You a long time so I try to answer
>
>>>>Filer can not work with masks like *Letters*.jpg
>>This is my test program (I commented the Filer part). Do you see, where I'm wrong?
>>
>>*!* #define crlf CHR(13) + CHR(10)
>>*!* oMyFiler = CREATEOBJECT('Filer.FileUtil')
>>*!* oMyFiler.SearchPath = "t:\jpg"
>>*!* oMyFiler.FileExpression = '*e4*.jpg'
>>*!* oMyFiler.Find(0)
>>*!* =MESSAGEBOX(oMyFiler.Files.Count)
>>*!* _cliptext = ""
>>*!* FOR EACH loFile IN oMyFiler.Files
>>*!* _cliptext = _cliptext + loFile.Name + CRLF
>>*!* NEXT
>
>You say that filer can't work with the mentioned mask.
>I don't see it in your example. Never say that you haven't
>tested as a final "true"...
>
What do you mean? I put *e4*.jpg as a mask. That's exactly what I'm saying.
>
>What is purpose the next line?
>
>>cliptext = _cliptext + loFile.Name + CRLF
this is just to put the file names here <g>
Hi Yuri,
I've just discussed this problem with my manager. He thinks, it may be a problem with directory structure of the server itself.
In any case, we both see the problem, when wrong files are added to the list.
I proposed to try to move files to another new folder, delete the old folder and rename this one.
We also think, we may create a file at night, then during the day have an option to add files if necessary.
Anyway, that's not an easy problem as it seemed to be originally. For now he suggested to add an extra check for mask in the returned list.
If it's not broken, fix it until it is.
My Blog