Finding filenames using wildcards

Ask a Question related to ASP, Design and Development.

  1. #1

    Default Finding filenames using wildcards

    I have an interesting challenge. I have a client that is
    putting pictures into a single folder on the web server.
    The files are specific in that the first 5 characters of
    the filename are the same ORDER#. The challenge is simply
    to find all the filenames with the initial 5 characters
    being input on an HTML form. That way I can establish
    links to each one of the pictures on the results page.

    So for instance if Order # 12345 was input the ASP page
    using I guess the filesystemobject should find all files
    that start with 12345 and return them. So the page could
    show 12345_1a.jpg / 12345_1b.jpg / 12345_4a.jpg /
    12345_12.jpg / etc., etc.

    Any ideas or help would be greatly appreciated!! Thank you
    in advance!
    Robert Wagstaff Guest

  2. Similar Questions and Discussions

    1. Using wildcards in a WHERE statement
      I'm in the process of converting from Access to SQLServer and need help with using wild cards in a WHERE statement. When the following statement is...
    2. Wildcards
      Why isn't it possible to search with wildcards (like * and ?) in Acrobat 6? In Acrobat 5 it used to be possible. What is the alternative?
    3. File copy wildcards
      I have a directory with files named: ex0915 dx0915 gg0915
    4. Locks next to filenames (k)
      My client is doing some changes to the site I uploaded. He is using Dreamweaver. I've noticed that some of the files in my filelist now have little...
    5. Wildcards in rename()?
      Hi all! Do any of you know if wildcards are accepted when calling rename() function? Thanks/Alvaro
  3. #2

    Default Re: Finding filenames using wildcards

    Insert the file list into a database table or a recordset, then you could
    use SQL where clause. This might give you a start:

    [url]http://www.aspfaq.com/2025[/url]



    "Robert Wagstaff" <rw@cns4us.com> wrote in message
    news:023101c36d9d$7f909260$a501280a@phx.gbl...
    > I have an interesting challenge. I have a client that is
    > putting pictures into a single folder on the web server.
    > The files are specific in that the first 5 characters of
    > the filename are the same ORDER#. The challenge is simply
    > to find all the filenames with the initial 5 characters
    > being input on an HTML form. That way I can establish
    > links to each one of the pictures on the results page.
    >
    > So for instance if Order # 12345 was input the ASP page
    > using I guess the filesystemobject should find all files
    > that start with 12345 and return them. So the page could
    > show 12345_1a.jpg / 12345_1b.jpg / 12345_4a.jpg /
    > 12345_12.jpg / etc., etc.
    >
    > Any ideas or help would be greatly appreciated!! Thank you
    > in advance!

    Aaron Bertrand - MVP Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139