The images in the 400 folder are referenced by lanesID in the db table,
so will that work or just give me a dir listing?


Thank you,


Donna French

-----Original Message-----
From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent: Friday, August 06, 2004 5:01 PM
To: CF-Talk
Subject: Re: FileExists sample code?


How about running this:

#directoryExists("c:\inetpub\lanescollectibles\images\400\")#

If that returns NO, then the file exist above will always return NO as
well.

cheers,
barneyb

On Fri, 6 Aug 2004 16:54:20 -0500, Donna French
<[EMAIL PROTECTED]> wrote:
> Okay, I pasted the wrong code - is it Monday again?
>
> Here's the code I'm using and it's listing images that DO exist.
>
> <!--- List Missing Images --->
> <b>Missing 400 images</b><br>
> <cfoutput query="listImage">
>            <cfif NOT
> FileExists("c:\inetpub\lanescollectibles\images\400\#lanesID#.jpg")>
>
>                        #name# - #lanesid#.jpg<br>
>            </cfif>
> </cfoutput>
>
> Thank you,
>
> Donna French
>
>
>
>
> -----Original Message-----
> From: Barney Boisvert [mailto:[EMAIL PROTECTED]
> Sent: Friday, August 06, 2004 4:43 PM
> To: CF-Talk
> Subject: Re: FileExists sample code?
>
> No, that'll list the images that DO exist.  You need to remove the
> CFELSE tag in there.
>
> cheers,
> barneyb
>
> On Fri, 6 Aug 2004 16:43:18 -0500, Donna French
> <[EMAIL PROTECTED]> wrote:
> > Shouldn't this work to give me a list of the images that are not
> present
> > for the dolls table?
> >
> > <cfquery name="listImage">
> >        SELECT lanesID, name
> >        FROM dolls
> > </cfquery>
> >
> > <!--- List Missing Images --->
> > <b>Missing 400 images</b><br>
> > <cfoutput query="listImage">
> >        <cfif NOT
> > FileExists("c:\inetpub\lanescollectibles\images\400\#lanesID#.jpg")>
> >
> >        <cfelse>
> >                #name# - #lanesid#.jpg<br>
> >        </cfif>
> > </cfoutput>
> >
> > Thank you,
> >
> > Donna French
> >
>  _____
>
>
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to