macromedia.coldfusion.getting_started
[Top] [All Lists]

Re: count no. of files

Subject: Re: count no. of files
From: Azadi <azadi@xxxxxxxxxxxxx>
Date: Sat, 26 Jul 2008 00:00:04 -0400
Newsgroups: macromedia.coldfusion.getting_started

use cfdirectory tag with NAME and FILTER attributes, i.e.
<cfdirectory ... NAME="myDir" FILTER="*.txt">

then #myDir.recordcount# will give you the number of .txt files in your dir.

it's all in the docs, by the way...

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/

<Prev in Thread] Current Thread [Next in Thread>