Go Back   CodingForums.com > :: Server side development > ASP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-02-2002, 12:18 PM   PM User | #1
mr_ego
Regular Coder

 
Join Date: Jun 2002
Location: Brisbane, Australia
Posts: 181
Thanks: 1
Thanked 0 Times in 0 Posts
mr_ego is an unknown quantity at this point
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)
mr_ego is offline   Reply With Quote
Old 08-02-2002, 07:43 PM   PM User | #2
QuackHead
Regular Coder

 
Join Date: Jun 2002
Posts: 344
Thanks: 0
Thanked 0 Times in 0 Posts
QuackHead is an unknown quantity at this point
I'm confused...

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

~Quack
QuackHead is offline   Reply With Quote
Old 08-03-2002, 12:07 AM   PM User | #3
mr_ego
Regular Coder

 
Join Date: Jun 2002
Location: Brisbane, Australia
Posts: 181
Thanks: 1
Thanked 0 Times in 0 Posts
mr_ego is an unknown quantity at this point
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.
mr_ego is offline   Reply With Quote
Old 08-03-2002, 12:51 AM   PM User | #4
oracleguy
Rockstar Coder


 
Join Date: Jun 2002
Location: USA
Posts: 9,043
Thanks: 1
Thanked 322 Times in 318 Posts
oracleguy is a jewel in the roughoracleguy is a jewel in the roughoracleguy is a jewel in the rough
http://www.asp101.com/samples/dir_list_sort.asp

this should do exactly what you want
__________________
OracleGuy
oracleguy is offline   Reply With Quote
Old 08-03-2002, 07:48 AM   PM User | #5
webmarkart
Regular Coder

 
Join Date: Jul 2002
Location: Raleigh, NC
Posts: 484
Thanks: 0
Thanked 0 Times in 0 Posts
webmarkart is an unknown quantity at this point
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
File Type: zip filedirectory.zip (44.7 KB, 144 views)
__________________
-WebMark Art
Programming is 80% thinking and 20% spelling
webmarkart is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:41 AM.


Advertisement
Log in to turn off these ads.