Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

search directories and list file names

Status
Not open for further replies.

robertl

Programmer
Jan 8, 2001
23
GB
Hi all,

I'm revisiting my issue of trying to search a directory on
my webserver and return a hyperlinked list of the Excel files within whatever directory they're stored in.

This is the closest that I've come, although it's in
VB (which lists the full path and file name--not what I need) and not JavaScript (which I need)

Code:
	path = fso.BuildPath("c:\\server\\", "schedules\\");
	Response.Write(path);
	Response.Write(&quot;<br>&quot;);
	fl = fso.GetFile(path + &quot;01Jan02BCEU.xls&quot;);
	Response.Write(fl.Name);
	Response.Write(&quot;<br><br>&quot;);

this will display:
c:\server\schedlules01Jan02BCEU.xls

There will be four or five excel files in the directory
which I will need listed as hyperlinks so that a visitor can click on them and display the contents of the file.

Thanks for your assistance. :)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top