<%
strPath = "./"
' Create our FSO
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
' Get a handle on our folder
Set objFolder = objFSO.GetFolder(Server.MapPath(strPath))
' Show a little description line and the title row of our table
%>
| PHOTO ALBUMS |
<%
For Each objItem In objFolder.SubFolders
' Deal with the stupid VTI's that keep giving our visitors 404's
If InStr(1, objItem, "_vti", 1) = 0 Then
%>
| ">
<%= objItem.Name %> |
<%
End If
Next 'objItem
' All done! Kill off our object variables.
Set objItem = Nothing
Set objFolder = Nothing
Set objFSO = Nothing
%>
|
<%
albumintro = "intro.html"
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
if objFSO.FileExists(Server.MapPath(albumintro)) then
Server.Execute(albumintro)
end if
'objFSO = Nothing
%>
Select an album from the list on the left.
This page works with Internet Explorer 5 and Netscape 6 but cannot be guaranteed to work with older browsers.
|