Yes...! Code below...

<CFDIRECTORY DIRECTORY="c:" NAME="myDirectory" >
<!--- Output the contents of the CFDIRECTORY as a CFTABLE --->    
<table>
<cfset x = 0>
<cfoutput query="mydirectory">
        <cfif name neq '. ' or name neq '.. '>
        <cfif x eq 0>
        <tr>
        </cfif>
        <cfset x = x + 1>
        <td>#Name#</td>
        <cfif x eq 3>
        </tr>
        <cfset x = 0>
        </cfif>    
        </cfif>
</cfoutput>
</table>

-----Original Message-----
From: phumes1 [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 11:57 AM
To: [EMAIL PROTECTED]
Subject: Re: Can this be done?



Hi,

This might be a crazy question but here it goes.

I'm using <cfdirectory to list files on our server. Some directories can

have a 100+ files in them. Presently I'm displaying the list down the
left 
side of my webpage under each other.

file1.txt
file2.txt
file3.txt
file4.txt
file5.txt
etc...

I was wondering if there is a way automatically using a table to do the 
following and if so, how?


file1.txt   file5.txt   file9.txt     file13.txt   file17.txt
file2.txt   file6.txt   file10.txt   file14.txt   file18.txt
file3.txt   file7.txt   file11.txt   file15.txt   file19.txt
file4.txt   file8.txt   file12.txt   file16.txt   file20.txt



+-----------------------------------------------------------------------
------------+ 

Philip Humeniuk
[EMAIL PROTECTED]
[EMAIL PROTECTED]
+-----------------------------------------------------------------------
-------------+



------------------------------------------------------------------------
-
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info:
www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

Attachment: smime.p7s
Description: application/pkcs7-signature

Reply via email to