With your suggestion and a few tweaks it does what I want.
Thanks Mike!
Robert O.
-Original Message-
From: Dawson, Michael [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 01, 2004 4:34 PM
To: CF-Talk
Subject: RE: CFDIRECTORY question
Why not just use CFDIRECTORY on each page
I have this cfdirectory code (see below) that I want to read a list of
directory names and then insert into a table.
However, this script will be running each time a user accesses drop-down list.
I want to list the current directories and any new directory names that have
been added.
At this
. Then, put it all together with a Query of Query. You
should be able to find the differences between the two.
M!ke
-Original Message-
From: Robert Orlini [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 01, 2004 2:42 PM
To: CF-Talk
Subject: CFDIRECTORY question
I have this cfdirectory
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 01, 2004 2:42 PM
To: CF-Talk
Subject: CFDIRECTORY question
I have this cfdirectory code (see below) that I want to read a list of
directory names and then insert into a table.
However, this script will be running each time a user accesses drop
Orlini [mailto:[EMAIL PROTECTED]
Sent: Thursday, 2 December 2004 7:42 AM
To: CF-Talk
Subject: CFDIRECTORY question
I have this cfdirectory code (see below) that I want to read a list of
directory names and then insert into a table.
However, this script will be running each time a user accesses
, but it will reduce
the number of data base interactions by two.
Six of one, 1/2-dozen of the other...
-Original Message-
From: Andrew Scott [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 01, 2004 7:49 PM
To: CF-Talk
Subject: RE: CFDIRECTORY question
There are a number of ways
I have a shopping cart that I have created and the images can be either gif
or jpg.
Since I am dynamically pulling from the images folder, how can I check to
see which image exists for a particular item.
I am currently doing this:
img src=images/#sku#.gif
I need to be able to see if #sku#.gif
To: CF-Talk
Subject: CFDirectory Question
I have a shopping cart that I have created and the images can be either
gif
or jpg.
Since I am dynamically pulling from the images folder, how can I check
to
see which image exists for a particular item.
I am currently doing this:
img src=images/#sku#.gif
]]
Sent: 09 September 2002 14:10
To: CF-Talk
Subject: CFDirectory Question
I have a shopping cart that I have created and the images can be either gif
or jpg.
Since I am dynamically pulling from the images folder, how can I check to
see which image exists for a particular item.
I am currently
performance problems, but a
database solution would or course, be better.
Tim P.
- Original Message -
From: Larry Juncker [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, September 09, 2002 9:10 AM
Subject: CFDirectory Question
I have a shopping cart that I have created
Use the function FileExists(ExpandPath(images/ sku .gif))
-Original Message-
From: Larry Juncker [mailto:[EMAIL PROTECTED]]
Sent: maandag 9 september 2002 15:10
To: CF-Talk
Subject: CFDirectory Question
I have a shopping cart that I have created and the images can be either
gif
: CFDirectory Question
I have a shopping cart that I have created and the images
can be either gif
or jpg.
Since I am dynamically pulling from the images folder,
how can I check to
see which image exists for a particular item.
I am currently doing this:
img src=images/#sku#.gif
I need
cfdirectory action = list
directory = directory
name = queryName
filter = *.jpg should do it. // whatever u want to filer..
Joe
- Original Message -
From: Larry Juncker [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Monday, September 09, 2002 9:10 AM
Subject: CFDirectory
[EMAIL PROTECTED]
Sent: Monday, September 09, 2002 8:23 AM
Subject: Re: CFDirectory Question
FileExists():
cfif FileExists(images/#sku#.gif)
img src=images/#sku#.gif
cfelseif FileExists(images/#sku#.jpg)
img src=images/#sku#.gif
/cfif
Though I'd prefer Tonys method, so you don't
OK,
I have another question about CFDirectory. When I output the names of
the files, I am seeing three things that are not right. The first file
is a period, and the next one is two periods. I am also seeing a file
called Thumbs.db. Is this normal?
Thanks
PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Saturday, January 12, 2002 4:54 PM
Subject: ANother CFDirectory question
OK,
I have another question about CFDirectory. When I output the names of
the files, I am seeing three things that are not right. The first file
is a period, and the next one
Ahh. Makes sense. So I will just have to account for that then. Thanks.
- Original Message -
From: Macarie Neculai [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Saturday, January 12, 2002 5:00 PM
Subject: RE: ANother CFDirectory question
Yes, this is normal. The first period
: Saturday, January 12, 2002 3:04 PM
To: CF-Talk
Subject: Re: ANother CFDirectory question
Ahh. Makes sense. So I will just have to account for that then. Thanks.
- Original Message -
From: Macarie Neculai [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Saturday, January 12, 2002 5:00 PM
-Original Message-
From: Tony Gruen [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 13, 2002 1:12 AM
To: CF-Talk
Subject: RE: ANother CFDirectory question
I got around the pointers using the following code you have to think
about the anticipated file naming conventions
Why not use the type instead, as it will say file or directory?
-Original Message-
From: Tony Gruen [mailto:[EMAIL PROTECTED]]
Sent: Sunday, 13 January 2002 10:12 AM
To: CF-Talk
Subject: RE: ANother CFDirectory question
I got around the pointers using the following code you have
Hi,
In an application that I'm working on I place images in a directory based
on a department id.
So for the name of the directory I am using the id to ensure distinctiveness.
My problem is that when an administrator removes a department I also want
to remove the directory.
Of course this is
Message -
From: "Jay Brushett" [EMAIL PROTECTED]
Newsgroups: dotcom.lists.cftalk
Sent: Tuesday, March 27, 2001 5:08 PM
Subject: CFDIRECTORY question
Hi,
In an application that I'm working on I place images in a directory based
on a department id.
So for the name of the directory
erry Pauline [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 23, 2001 3:48 PM
To: CF-Talk
Subject: CFDIRECTORY Question -- Simple I Hope !
CFxperts:
I have what seems like a very basic routine, copied almost exactly from
the manual:
CFDIRECTORY DIRECTORY="c:\InetPub\WWWROOT\"
CFxperts:
I have what seems like a very basic routine, copied almost exactly from
the manual:
CFDIRECTORY DIRECTORY="c:\InetPub\WWWROOT\"
NAME="DirList"
SORT="size DSC"
CFOUTPUT QUERY="DirList"
CFIF DirList.Type Is "Dir"
#DirList.Type#nbsp;nbsp;
CFxperts:
Well, I again re-read the manual section on CFDIRECTORY, and for the
size parameter it, it states that size is the "size of the directory
entry".
Sure enough, when I removed the CFIF DirList.Type Is "Dir", the files
in the directory had the size in bytes listed. I guess I can get the
.
-Original Message-
From: Gerry Pauline [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 23, 2001 3:48 PM
To: CF-Talk
Subject: CFDIRECTORY Question -- Simple I Hope !
CFxperts:
I have what seems like a very basic routine, copied almost exactly from
the manual:
CFDIRECTORY DIRECTORY=&q
You can trim the extension via #ListFirst(qDirectory.Name,".")#
(assuming there's only one period per file name).
What's wrong with a simple CFQUERYinsert/CFQUERY?
-David
On Tue, 5 Sep 2000 Jacob McKee [EMAIL PROTECTED] writes:
Please help!
I need to know how to read all the files in a
Please help!
I need to know how to read all the files in a directory, trim the .gif or
.jpg or what ever extension off and create a database record based on that
file name.
With the CFDIRECTORY, I can read a list of the files, but I can't get the
INSERT to work. I also don't have any idea how
28 matches
Mail list logo