List directory contents

A

ats@jbex

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
 
L

Lloyd Sheen

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
 
A

ats@jbex

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

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top