I have this script to display all the files within the directory the script is in, but I will have a directory that will contain multiple folders, with documents in each.
What I envision is a webpage that dynamically lists all the folders, by its name, then when you click it, it displays the list of files linked.
I want to do this, because this directory will have additional folders and files added to it.
This is the script I have that will work, IF I put it in each folder, so it isn't completely dynamic.
<h3>Resources/Documents</h3>
<ul>
<%
Set MyDirectory=Server.CreateObject("Scripting.FileSystemObject")
Set MyFiles=MyDirectory.GetFolder(Server.MapPath("documents/standard_14"))
For each filefound in MyFiles.files
%>
<li>
<a href="documents/standard_14/<% =filefound.Name %>" target="blank"><% =filefound.Name %></a>
</li>
<% Next %>
</ul>
I am not familiar with ASP at all - any help is appreciated.