Use CFDIRECTORY for that. Note, however, that the directory listing also
includes "." and ".." so you would decrease the number of files by 2 to
account for that.
Regards,
Howie Hamlin
--
inFusion Project Manager; On-Line Data Solutions, Inc. (631)737-4668
===================================================
Please vote for iMS in the Most Innovative category here:
*** http://www.sys-con.com/ColdFusion/readerschoice2000/ ***
===================================================
Check out inFusion Mail Server - the world's most configurable email server
*** inFusion Authenticator for IIS is now released! (download from
CoolFusion.com) ***
http://www.teletrends.com and http://www.coolfusion.com
Software and utilities for ColdFusion, iHTML, Website, NTMail
Latest versions available from our web site (inFusion Authenticator version
2.0 for WebSite and NTMail is now released)
----- Original Message -----
From: Gregory Weiss <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 24, 2000 1:32 PM
Subject: Obtain # of Files in a DIRECTORY
> This message is in MIME format. Since your mail reader does not understand
> this format, some or all of this message may not be legible.
>
> ------_=_NextPart_001_01BFAE13.01D459EE
> Content-Type: text/plain;
> charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> I need to get a count of the number of files in a particluar =
> directory.=A0 I
> know that CFFILE allows you to do several FILE operations, but how =
> would you
> actually get a count of the number of files that exist in a particular
> directory.
> =A0
> Thanks in advance for your help.
> =A0
> Gregory L. Weiss
> Web Development Project Leader
> Trapezoid, Inc.
> 4107 Laguna Street
> Coral Gables, Florida 33146
> (305) 442-8060 x230
> <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
> =A0
>
> ------_=_NextPart_001_01BFAE13.01D459EE
> Content-Type: text/html;
> charset="iso-8859-1"
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <HTML><HEAD>
> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
>
>
> <META content="MSHTML 5.00.2920.0" name=GENERATOR></HEAD>
> <BODY>
> <DIV><FONT face=Arial size=2><SPAN class=690004717-24042000>I need to get
a
> count of the number of files in a particluar directory. I know that
CFFILE
> allows you to do several FILE operations, but how would you actually get a
count
> of the number of files that exist in a particular
directory.</SPAN></FONT></DIV>
> <DIV><FONT face=Arial size=2><SPAN
> class=690004717-24042000></SPAN></FONT> </DIV>
> <DIV><FONT face=Arial size=2><SPAN class=690004717-24042000>Thanks in
advance
> for your help.</SPAN></FONT></DIV>
> <DIV><FONT face=Arial size=2><SPAN
> class=690004717-24042000></SPAN></FONT> </DIV>
> <DIV><FONT face=Arial size=2><STRONG><EM>Gregory L.
> Weiss</EM></STRONG></FONT></DIV>
> <DIV><FONT face=Arial size=2>Web Development Project Leader</FONT></DIV>
> <DIV><FONT face=Arial size=2>Trapezoid, Inc.</FONT></DIV>
> <DIV><FONT face=Arial size=2>4107 Laguna Street</FONT></DIV>
> <DIV><FONT face=Arial size=2>Coral Gables, Florida 33146</FONT></DIV>
> <DIV><FONT face=Arial size=2>(305) 442-8060 x230</FONT></DIV>
> <DIV align=left><FONT face=Arial size=2><A
>
href="mailto:[EMAIL PROTECTED]"><STRONG>[EMAIL PROTECTED]</STRONG></A>
</FONT></DIV>
> <DIV> </DIV></BODY></HTML>
>
> ------_=_NextPart_001_01BFAE13.01D459EE--
> --------------------------------------------------------------------------
----
> Archives: http://www.eGroups.com/list/cf-talk
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.