Professional Web Applications Themes

getting a directory contents sorted on name - ASP

Its either the fancy sort routine or feed the data into a table as you read it and display it from there using ORDER BY to achive reqd result your choice "Simon Wigzell" <simonwigzellshaw.ca> wrote in message news:f%YSa.480007$3C2.12937572news3.calgary.shaw. ca... > I'm using FileSystemObject to retrieve the contents of a directory to use in > a pulldown menu : > > set fs = CreateObject("Scripting.FileSystemObject") > set folder = fs.GetFolder(Server.MapPath(imagesDirectory & "/")) > > etc. > > The file names come in as if sorted by modfy date, I would like them to be > sorted by name. Is that possible ...

  1. #1

    Default Re: getting a directory contents sorted on name

    Its either the fancy sort routine or feed the data into a table as you read
    it and display it from there using ORDER BY to achive reqd result

    your choice

    "Simon Wigzell" <simonwigzellshaw.ca> wrote in message
    news:f%YSa.480007$3C2.12937572news3.calgary.shaw. ca...
    > I'm using FileSystemObject to retrieve the contents of a directory to use
    in
    > a pulldown menu :
    >
    > set fs = CreateObject("Scripting.FileSystemObject")
    > set folder = fs.GetFolder(Server.MapPath(imagesDirectory & "/"))
    >
    > etc.
    >
    > The file names come in as if sorted by modfy date, I would like them to be
    > sorted by name. Is that possible without using a fancy sort routine?
    >
    > Thanks!
    >
    >

    only me Guest

  2. #2

    Default Re: getting a directory contents sorted on name

    define "fancy".
    Basically there is no built in SORT.
    You need to pass to an Array or RS.
    See [url]www.aspfaq.com[/url] on this....he has examples.

    --
    ----------------------------------------------------------
    Curt Christianson (Software_AT_Darkfalz.Com)
    Owner/Lead Designer, DF-Software
    [url]http://www.Darkfalz.com[/url]
    ---------------------------------------------------------
    ...Offering free scripts & code snippits for everyone...
    ---------------------------------------------------------

    "Simon Wigzell" <simonwigzellshaw.ca> wrote in message
    news:f%YSa.480007$3C2.12937572news3.calgary.shaw. ca...
    > I'm using FileSystemObject to retrieve the contents of a directory to use
    in
    > a pulldown menu :
    >
    > set fs = CreateObject("Scripting.FileSystemObject")
    > set folder = fs.GetFolder(Server.MapPath(imagesDirectory & "/"))
    >
    > etc.
    >
    > The file names come in as if sorted by modfy date, I would like them to be
    > sorted by name. Is that possible without using a fancy sort routine?
    >
    > Thanks!
    >
    >

    Curt_C [MVP] Guest

Similar Threads

  1. moving directory contents from local to server
    By b1boogie in forum Macromedia ColdFusion
    Replies: 1
    Last Post: May 31st, 01:39 PM
  2. Listing contents of a directory folder to contents ofdirectory
    By Rubex_Cube in forum Coldfusion - Advanced Techniques
    Replies: 2
    Last Post: April 11th, 10:23 PM
  3. cfdirectory - linking directory folder to contents ofdirectory.
    By Rubex_Cube in forum Macromedia ColdFusion
    Replies: 0
    Last Post: April 11th, 05:29 PM
  4. Upload directory and contents from browers
    By Dunskii in forum Macromedia ColdFusion
    Replies: 0
    Last Post: March 9th, 03:01 AM
  5. rsync exclude file - directory name without directory contents
    By emilio lazardo in forum Linux / Unix Administration
    Replies: 0
    Last Post: December 3rd, 10:28 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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