Maybe you have white space at the beginning or end of the temp variable
(that you are not using when you copy-paste the output. Try 

FileExists( Trim( tempfile ))  


......................
Ben Nadel
Certified Advanced ColdFusion MX7 Developer
www.bennadel.com
 
Need ColdFusion Help?
www.bennadel.com/ask-ben/

-----Original Message-----
From: Gary Strommen [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 05, 2007 3:35 PM
To: CF-Newbie
Subject: Re: cffile renaming

I have used this code:

        <cfoutput>#tempfile#</cfoutput> 
(Output:
C:\Inetpub\wwwroot\...\23FA2263-3048-2C27-33276E60B73E4DFC.jpg)

        <cfif
#FileExists("C:\Inetpub\wwwroot\...\23FA2263-3048-2C27-33276E60B73E4DFC.
jpg")#>
                Yes File Exists
        <cfelse>
                No File does not exist
        </cfif>
(Output:  Yes File Exists)


        <cfif #FileExists(tempfile)#>
                Yes File Exists
        <cfelse>
                No File does not exist
        </cfif>
(Output:  No File does not exist)

Do I have a syntax problem or is it something deeper?

-Gary

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/

Archive: 
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:2608
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to