469,943 Members | 2,473 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,943 developers. It's quick & easy.

List directory contents

ats
Hope this is the correct group. I am looking to place a set of constantly
changing excel files in a directory on my web server. I want to display
these as a list of clickable links on a page. Are there any controls or
simple code out there to do this?

TIA

--
ats@jbex

I'm not gonna be taken in
They said if I don't join I just can't win
I've heard that story many times before
And every time I threw it out the door

SLF - Wasted Life
Feb 16 '07 #1
2 1415
Not sure whether you mean links on a web page, but the code to get the files
is simple.

First you have to reference System.IO which holds the classes you will need.
In the Directory class are methods to get file names using wildcards. Then
use this list to populate the links.

If there are also folders you will have to make the code reentrant.

Lloyd Sheen

"ats@jbex" <al***@allenjones.NOSPAM.co.PLEASE.ukwrote in message
news:y7****************************@40tude.net...
Hope this is the correct group. I am looking to place a set of constantly
changing excel files in a directory on my web server. I want to display
these as a list of clickable links on a page. Are there any controls or
simple code out there to do this?

TIA

--
ats@jbex

I'm not gonna be taken in
They said if I don't join I just can't win
I've heard that story many times before
And every time I threw it out the door

SLF - Wasted Life
Feb 16 '07 #2
ats
On Fri, 16 Feb 2007 11:45:12 -0500, Lloyd Sheen wrote:
Not sure whether you mean links on a web page, but the code to get the files
is simple.

First you have to reference System.IO which holds the classes you will need.
In the Directory class are methods to get file names using wildcards. Then
use this list to populate the links.

If there are also folders you will have to make the code reentrant.

Lloyd Sheen

"ats@jbex" <al***@allenjones.NOSPAM.co.PLEASE.ukwrote in message
news:y7****************************@40tude.net...
>Hope this is the correct group. I am looking to place a set of constantly
changing excel files in a directory on my web server. I want to display
these as a list of clickable links on a page. Are there any controls or
simple code out there to do this?

TIA

--
ats@jbex

I'm not gonna be taken in
They said if I don't join I just can't win
I've heard that story many times before
And every time I threw it out the door

SLF - Wasted Life
Thanks for that. Did some research on System.IO and now have it working.
--
ats@jbex

Those who died are justified, for wearing the badge, they're the chosen
whites
You justify those that died by wearing the badge, they're the chosen whites

Rage Against The Machine - Killing In The Name
Feb 19 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Harold Crump | last post: by
3 posts views Thread by Nick | last post: by
14 posts views Thread by kpp9c | last post: by
4 posts views Thread by thoseion | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.