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. 4 2301
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******** ********@TK2MSF TNGP02.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.
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. ;)
Ooh, I'd love to see that.
"Ray Booysen" <rj***********@ rjb.za.net> wrote in message
news:%2******** ********@TK2MSF TNGP03.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. ;)
Great! thanks a log.
"John Timney (MVP)" <x_****@timney. eclipse.co.uk> wrote in message
news:ia******** ************@ec lipse.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******** ********@TK2MSF TNGP02.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.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: dSchwartz |
last post by:
What I think I'm looking for is a way (in XSL stylesheet) to get the
contents of a directory. How can this be accomplished?
more detailed:
/root
index.aspx
xsl_style.xsl
/xml
newsletter_001.xml
|
by: eric_caron_31 |
last post by:
Hi
I have a page with a Datalist. In section ItemTemplate, I have an
hyperlink. I want to Bind content of a directory to imageurl. I want
to do this to display all picture files from a directory. How I can do
this ?
Thanks
|
by: carla |
last post by:
We have a bunch of articles that visitors to our website can read. They do a
search, and we present a list of matching article links. The files are named
sequentially: art1.htm, art2.htm, art3, htm, and so on. The articles
directory is located benath our web app:
inetpub
wwwroot
webapp
articles
|
by: Paul |
last post by:
Hi just wondering a good way to display all files in a directory on a server
and have them selectable to be opened by the client machine. These files
change from time to time so would not want to hard code in the link and file
names as part of the hyperlink. Also would want to launch a new page so
would use the Target="_blank"
--
Paul G...
|
by: farseer |
last post by:
Hi,
I am storing certain files in the same directory as an asp page. I'd
like for that page to be able to read read the names of the files in
that directory with a certain extension and create a hyperlink to them.
How can i do this.
as an example...
let's say my page resides at /mysite/dir1/default.aspx.
now in /mysite/dir1 are the files...
| |
by: 2stepme |
last post by:
I know I should be using a database ... but ... I have created a few
pages which store user data in text files. The user text files where
created using session_encode. There is a text file for each user.
There is a masterlogin.txt that contains all of the names of the
individual text files. I can loop through an array created from...
|
by: tcurdts |
last post by:
Greetings,
I'm using WindowsXP Pro v5.1and am writing a BAT file to loop through a list of files (contained in a .txt file) and pass them (actually variables derived from them) to another program (ERDAS Imagine). What appears to be happening is that the FOR loop isn't utilizing the variables until the 2nd iteration after the variable is set. ...
|
by: tshad |
last post by:
I had posted this problem earlier and just noticed that the Hyperlink is the
problem.
Apparently, it doesn't figure out the path correctly. It uses the path of
the file it is in, even if it is a control.
I have 2 files "displayCompanyJobs.aspx" and "displayCompanyOverview.aspx"
which are in both the folder "/jobseeker/" and "/employer/"....
|
by: Ben |
last post by:
Hi,
there are a lot of files (unknown number), all ending with .aspx, in
directory c:\inetpub\wwwroot\mydirectory\
How can i make a hyperlink for each of those files and make that list of
hyperlink available to the users?
Thanks for help
Ben
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |