Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5

Thread: folders

  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Location
    Brisbane, Australia
    Posts
    181
    Thanks
    1
    Thanked 0 Times in 0 Posts

    folders

    how do i write a list of folders within a certain folder

    eg:



    MAIN FOLDER
    | ---- Folder 1
    | ---- Folder 2


    but ofcourse it has to be put in a certain way in tables.

    How do i do this?
    (i dont think i explained it well ... its a bit confuzing to read)

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Posts
    344
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm confused...

    are you talking about listing the folders? (on your server's hard drive ??)

    ~Quack

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    Brisbane, Australia
    Posts
    181
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Let me show you an example:

    I have a folder called IMAGES, and within that folder are many other folders (eg: Fashion, Entertainment, Houses) etc.

    I want to write a script that will open the directory IMAGES, then open all the sub directories within the folder IMAGES and retrieve the first file (in alphabetical order). I have been trying for ages but the closest i could get is showing one image that the query string specifies.

    Thanks.

  • #4
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    http://www.asp101.com/samples/dir_list_sort.asp

    this should do exactly what you want
    OracleGuy

  • #5
    Regular Coder
    Join Date
    Jul 2002
    Location
    Raleigh, NC
    Posts
    484
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I posted something like this before,
    This is a really nice code for that...

    Here is an example of what it looks like:
    http://www.through-the-eyes.com/examples


    All you have to do is move all of the images into a folder called icons.

    If you have trouble with it let me know....
    Attached Files Attached Files
    -WebMark Art
    Programming is 80% thinking and 20% spelling


  •  

    Posting Permissions

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