...

View Full Version : Displaying File Info



ldiuf
07-23-2002, 02: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:

ReyN
07-23-2002, 03:33 AM
I think I have something similar, though is done in ASP.NET. This page provides quick links to the demos available in the workshop. :D

Show me (http://aspalliance.com/aspxtreme/showme.aspx)

webmarkart
07-23-2002, 06:29 AM
This is a really nice code for that...

Here is an example of what it looks like:
http://www.through-the-eyes.com/examples


All you have to do is move all of the images into a folder called icons.

If you have trouble with it let me know....

webmarkart
07-23-2002, 06:31 AM
The attatchment didn't work... lets try it again

ldiuf
07-23-2002, 05:51 PM
SWEET!

That was exactly what I need to get me onto the right path.
Thank You Very Much.
Cheers,
Larry:thumbsup:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum