By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,300 Members | 2,044 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,300 IT Pros & Developers. It's quick & easy.

how to loop through a directory and hyperlink to all files

P: n/a
I want to loop through a directory and list all files in hyperlinks. Then
when you click on a hyperlink, it opens the file in whatever application it
needs. For now I need to do this with Adobe Acrobat, but I'd like to know
how to do this for Excel, etc.

Can anyone show me some code? I've looked on google and found only
fragments, surprisingly.
Jun 9 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
You can easily recurse a directory and its subdirectories, dispalying the
file paths etc. Wrapping them in hyperlinks is only a case of surrounding
the results with the relevent text for a hyperlink.

This will help you get started.
http://support.microsoft.com/default...b;en-us;303974

--
Regards

John Timney (MVP)
"mrmagoo" <-> wrote in message
news:uS****************@TK2MSFTNGP02.phx.gbl...
I want to loop through a directory and list all files in hyperlinks. Then
when you click on a hyperlink, it opens the file in whatever application
it
needs. For now I need to do this with Adobe Acrobat, but I'd like to know
how to do this for Excel, etc.

Can anyone show me some code? I've looked on google and found only
fragments, surprisingly.

Jun 9 '06 #2

P: n/a
mrmagoo wrote:
I want to loop through a directory and list all files in hyperlinks. Then
when you click on a hyperlink, it opens the file in whatever application it
needs. For now I need to do this with Adobe Acrobat, but I'd like to know
how to do this for Excel, etc.

Can anyone show me some code? I've looked on google and found only
fragments, surprisingly.

I actually wrote a usercontrol which binds the contents of a directory
to a datagrid (ASP.NET 1.1) and displays the files and folders with
clickable links. Its late for me now, but I'll try to post some code
tomorrow.

Email me to remind me. ;)
Jun 9 '06 #3

P: n/a
Ooh, I'd love to see that.
"Ray Booysen" <rj***********@rjb.za.net> wrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
mrmagoo wrote:
I want to loop through a directory and list all files in hyperlinks. Then when you click on a hyperlink, it opens the file in whatever application it needs. For now I need to do this with Adobe Acrobat, but I'd like to know how to do this for Excel, etc.

Can anyone show me some code? I've looked on google and found only
fragments, surprisingly.

I actually wrote a usercontrol which binds the contents of a directory
to a datagrid (ASP.NET 1.1) and displays the files and folders with
clickable links. Its late for me now, but I'll try to post some code
tomorrow.

Email me to remind me. ;)

Jun 9 '06 #4

P: n/a
Great! thanks a log.
"John Timney (MVP)" <x_****@timney.eclipse.co.uk> wrote in message
news:ia********************@eclipse.net.uk...
You can easily recurse a directory and its subdirectories, dispalying the
file paths etc. Wrapping them in hyperlinks is only a case of surrounding
the results with the relevent text for a hyperlink.

This will help you get started.
http://support.microsoft.com/default...b;en-us;303974

--
Regards

John Timney (MVP)
"mrmagoo" <-> wrote in message
news:uS****************@TK2MSFTNGP02.phx.gbl...
I want to loop through a directory and list all files in hyperlinks. Then
when you click on a hyperlink, it opens the file in whatever application
it
needs. For now I need to do this with Adobe Acrobat, but I'd like to know how to do this for Excel, etc.

Can anyone show me some code? I've looked on google and found only
fragments, surprisingly.


Jun 9 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.