I have this script to display all the files in the directory where the script is located, but I will have a directory that will contain several folders with documents in each.
What I represent is a web page that dynamically lists all folders by name, and then when you click on it, a list of related files is displayed.
I want to do this because additional folders and files will be added to this directory.
This is a script. I have something that will work IF I put it in every folder, so it is not fully 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.