[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
-Original Message-
From: Paul Ihrig [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 24, 2000 4:46 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Obtain # of Files in a DIRECTORY
Gregory :
are you using CFFILE to upload the files you want
Use which returns a query set, then look at
queryname.recordcount, which returns the number of entries in the
directory, including subdirectories. To count just the files, you'd loop
over the query and check the column named "type" as in:
Number of files: #filecount#
Jim
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
==
You could use the CFDIRECTORY tag and then use the RecordCount variable on
the query that is generated... for instance:
Number of files: #Pics.RecordCount#
Good luck!
dBIII+
-Original Message-
From: Gregory Weiss [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 24, 2000 1:32 PM
To: '[E
Gregory :
are you using CFFILE to upload the files you want to count?
If so are you keeping track of the uploaded fileName's in a Database?
If so, you could just getmaxID.Max_ID
Hope that helps you.
-paul
> -Original Message-
> I need to get a count of the number of files in a particluar
#listit.recordcount#
Shane
-Original Message-
From: Gregory Weiss [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 24, 2000 11:32 AM
To: '[EMAIL PROTECTED]'
Subject: Obtain # of Files in a DIRECTORY
This message is in MIME format. Since your mail reader does not understand
this format,
Use CFDIRECTORY and return the results to the QUERY attribute. The query
contains a bunch of information about the files in the directory. Then do a
".recordcount" on the query variable, subtract 2 if you're in an NT world
(to account for the "." and ".." control directories, and you've got the
co
Give the CFDIRECTORY tag a try.
-Original Message-
From: Gregory Weiss [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 24, 2000 12:32 PM
To: '[EMAIL PROTECTED]'
Subject: Obtain # of Files in a DIRECTORY
This message is in MIME format. Since your mail reader does not understand
this forma
8 matches
Mail list logo