I would do it like this: <cfif fileExists( expandPath('./Images') & trim(session.client_ID) & trim(session.insured_ID) & '1.jpg')>
<!--- yada yada yada ---> </cfif> HTH, -- Josh Trefethen .:::::[ Exciteworks, Inc ]::[ http://exciteworks.com ]:::::. .::[ cf hosting on linux ]::[ consulting ]::[ expertise ]::. > -----Original Message----- > From: Paige Chandler [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 10, 2003 10:17 PM > To: CF-Talk > Subject: How to use ExpandPath > > > Hello All, > > Is the following the correct usage of ExpandPath? > > <CFIF > FileExists(ExpandPath("Images\#Trim(Session.Client_ID)##Trim(S > ession.Insured_ID)#1.jpg"))> > <INPUT Type="button" Value="View Certificate - page 1" > Name="Search1" onClick="window.location='http:\CVS3WP14.CFM'"> > <INPUT Type="button" Value="View Certificate - page 2" > Name="Search1" onClick="window.location='http:\CVS3WP15.CFM'"> > </CFIF> > > The .jpg image does exist. I don't get a error but it doesn't > display the buttons either. Help will be appreciated. TIA. > > > Regards, > > Paige > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Host with the leader in ColdFusion hosting. Voted #1 ColdFusion host by CF Developers. Offering shared and dedicated hosting options. www.cfxhosting.com/default.cfm?redirect=10481 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4