I'm trying to create an ASP page that will create a dropdown menu of the names of subdirectories on the server.
Then after the user selects the dropdown menu, retrieve the number of files (filecount) in that subdirectory. Currently I have all this information scripted into JavaScript at http://www.hewittsinc.com/max/java/slideshows.htm, but I'd like to be able to change this so that all I have to do is upload the subdirectories and files.
Can anyone help?
Here's what I have so far:
<form name="vbgetfolder" method="post" action="">
<select name="fld" onChange="submit()">
<option value="selected">Select a folder --></option>
<%
const subdir = "\images\"
dim objFSO
set objFSO = Server.CreateObject("Scripting.FileSystemObject")
for each fldr in Server.MapPath(subdir)
'what goes here?
next fldr
%>
</select>
</form>


Reply With Quote
Bookmarks