FindFirstFile('bla??.dbf', ...) returns a file called 'bla08.blub.dbf'

FindFirstFile('bla??.dbf', ...) returns a file called 'bla08.blub.dbf'
WTF? I specified ??, not *! Why does Windows try to guess what I mean instead of just taking it at face value?

Comments

  1. I think this is because of msdos compatibility with file extensions.
    Use "MatchesMask" function from unit Masks.pas to filter these.

    ReplyDelete
  2. David Millington Or both - especially when you know about it, forget about it, then get caught by it and then remember it.

    ReplyDelete
  3. That wasn't really a question, more of a rant to vent some stream. I desperately needed that today. I have been wasting weeks with a not so well - hmpf - managed project and it's still not finished. The blaming has just started.

    ReplyDelete
  4. David Millington ouch. Just to think that MS DOS still leaves it's mark today.

    ReplyDelete
  5. Thomas Mueller For the right money, I either have the right person for you as an escape goat...  Or the right person could be taken out... 

    It is meant to be a joke to de-stress the situation - Don't take my offer too seriously, or should you? ;-)

    ReplyDelete

Post a Comment