Announcement

Collapse
No announcement yet.

Folder Name wildcards (? and *)

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

  • 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

  • #2
    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>
    Lance
    mailto:[email protected]

    Comment


    • #3
      Lance,
      youre a genius - thx

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

      Comment

      Working...
      X