Announcement

Collapse
No announcement yet.

Folder Name wildcards (? and *)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mike Trader
    replied
    Lance,
    youre a genius - thx

    ------------------
    Kind Regards
    Mike

    Leave a comment:


  • Lance Edmonds
    replied
    I would hazard a guess that you have too many levels of wildcards in the PathAndMask string.
    Code:
    PathAndMask = CURDIR$ + "\???CME\*.*"
    should probably be:
    Code:
    PathAndMask = RTRIM$(CURDIR$, "\") + "\???CME"
    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>

    Leave a comment:


  • Mike Trader
    started a topic Folder Name wildcards (? and *)

    Folder Name wildcards (? and *)

    I want to search the CURDIR$ for any folders with CME at the end of the name
    For example
    SP_CME
    ND_CME

    so i used
    PathAndMask = CURDIR$ + "\???CME\*.*"
    hFind = FINDFIRSTFILE(BYVAL STRPTR(PathAndMask), wfd)
    This does not work.
    Are wildcards only for filenames?

    ------------------
    Kind Regards
    Mike
Working...
X