<head>
<title>Untitled</title>
<Style type="text/css">
.title {
color: #00008b;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
text-decoration: underline;
height: 2px;
}
.file {
color: #6869ff;
font-family: Arial, Helvetica, sans-serif;
font-size: 10px;
height: 1px;
}
</style>
</head>
<body>
<%
dim fs,fo,xFolder, theFolder
thePath = Server.MapPath("/templates")
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fo=fs.GetFolder(thePath)
for each xFolder in fo.SubFolders
theFolder = xFolder.Name
Response.write("<div class=title>" &theFolder & "</div><br />")
set fo=fs.GetFolder(thePath & "/" & theFolder)
for each x in fo.files
'Print the name of all files in the test folder
Response.write "<div class=file>   " & x.Name & "</div><br />"
next
next
set fo=nothing
set fs=nothing
%>
|