ldiuf
07-23-2002, 01:18 AM
Hey,
I was wondering if someone could, please, show me how to make the code for listing the contents of a directory with the size and extension of each file in just one directory?
Below is what I have as a basic layout but I lack the knowhow, thus far, to complete it.
<html><head><title>Downloads Page</title>
<LINK href="../style.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
</head>
<body>
<center><em><h1><b>Documentation and Downloads</b></h1></em></center>
<p>
<center>
<table cellspacing="1" cellpading="1" bgcolor="#ffffff" border="2" width="98%">
<tbody>
<tr>
<td align="middle" bgColor="gray"><font face="ARIAL" color="#ffffff" size="2"><b>FILE DESCRIPTION AND/OR CONTENTS</font></td>
<td align="middle" bgColor="gray"><font face="ARIAL" color="#ffffff" size="2"><b>VIEW</font></td>
<td align="middle" bgColor="gray"><font face="ARIAL" color="#ffffff" size="2"><b>SIZE</font></td>
<td align="middle" bgColor="gray"><font face="ARIAL" color="#ffffff" size="2"><b>SAVE</font></td>
<td align="middle" bgColor="gray"><font face="ARIAL" color="#ffffff" size="2"><b>SIZE</font></td></tr>
<% CODE TO START LISTING FILES %>
<tr>
<td><font face="ARIAL" size="1" color="#000000"><% =filename %></font></td>
<td align="middle"><a class="clr2" href="<% =filepath %>"><% =fileext %></a></td>
<td align="middle"><font color="#000000" size="2"><% =filesize %></font></td>
<td align="middle"><a class="clr2" href="<% =zippath %>">ZIP</a></td>
<td align="middle"><font color="#000000" size="2"><% =zipsize %></font>
</tr>
<%
CODE FOR LOOPING THROUGH EACH FILE
CODE AT END
%>
</table>
<!--#include file="../Footer.asp" -->
</td>
</tr>
</table>
</center>
</body></html>
I apprieciate any help that I can get on this.
Cheers,
Larry:thumbsup:
I was wondering if someone could, please, show me how to make the code for listing the contents of a directory with the size and extension of each file in just one directory?
Below is what I have as a basic layout but I lack the knowhow, thus far, to complete it.
<html><head><title>Downloads Page</title>
<LINK href="../style.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
</head>
<body>
<center><em><h1><b>Documentation and Downloads</b></h1></em></center>
<p>
<center>
<table cellspacing="1" cellpading="1" bgcolor="#ffffff" border="2" width="98%">
<tbody>
<tr>
<td align="middle" bgColor="gray"><font face="ARIAL" color="#ffffff" size="2"><b>FILE DESCRIPTION AND/OR CONTENTS</font></td>
<td align="middle" bgColor="gray"><font face="ARIAL" color="#ffffff" size="2"><b>VIEW</font></td>
<td align="middle" bgColor="gray"><font face="ARIAL" color="#ffffff" size="2"><b>SIZE</font></td>
<td align="middle" bgColor="gray"><font face="ARIAL" color="#ffffff" size="2"><b>SAVE</font></td>
<td align="middle" bgColor="gray"><font face="ARIAL" color="#ffffff" size="2"><b>SIZE</font></td></tr>
<% CODE TO START LISTING FILES %>
<tr>
<td><font face="ARIAL" size="1" color="#000000"><% =filename %></font></td>
<td align="middle"><a class="clr2" href="<% =filepath %>"><% =fileext %></a></td>
<td align="middle"><font color="#000000" size="2"><% =filesize %></font></td>
<td align="middle"><a class="clr2" href="<% =zippath %>">ZIP</a></td>
<td align="middle"><font color="#000000" size="2"><% =zipsize %></font>
</tr>
<%
CODE FOR LOOPING THROUGH EACH FILE
CODE AT END
%>
</table>
<!--#include file="../Footer.asp" -->
</td>
</tr>
</table>
</center>
</body></html>
I apprieciate any help that I can get on this.
Cheers,
Larry:thumbsup: