Wildcards, again

This is a discussion on Wildcards, again within the Windows Programming forums, part of the Platform Specific Boards category; As suggested, by Novacain, I started using ????? for wildcards, but it seems it matches only under these conditions: c:\???.html ...

  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    39

    Wildcards, again

    As suggested, by Novacain, I started using ????? for wildcards, but it seems it matches only under these conditions:

    c:\\???.html -- only matches c:\\dog.html or any other 3 letters/numbers

    File path lengths vary, of course, so how would I use wild cards to match variable file path lengths???

    thanks

    By the way...

    Of course, wildcards don't only match 3 letters/numbers. I just happened to used 3 in my example. (Just clearing things up). It seems as if the number of ??? must equal the number of wildcard characters, is another way of putting it.
    Last edited by Echidna; 12-09-2001 at 03:17 PM.

  2. #2
    Registered User johnnie2's Avatar
    Join Date
    Aug 2001
    Posts
    186
    Use the asterick: c:\\windows\\desktop\\*.html
    "Optimal decisions, once made, do not need to be changed." - Robert Sedgewick, Algorithms in C

  3. #3
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,859
    Sorry I did not explain well enough

    * == any number of characters

    ? == one character
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Files and wildcards
    By MacNilly in forum C Programming
    Replies: 3
    Last Post: 08-11-2007, 03:42 PM
  2. Trying to get my App to copy files with wildcards
    By Dwizard in forum Windows Programming
    Replies: 3
    Last Post: 09-30-2005, 05:49 PM
  3. extracting files from a rar/zip
    By jverkoey in forum Windows Programming
    Replies: 2
    Last Post: 03-28-2003, 07:55 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21