You can use fileExists w/ a URL but unfortunately, if the server has a 404
handler than it will return true even when the 404 handler fires.
<cfif fileExists("http://www.raymondcamden.com/index2332.cfm")>
yes
</cfif>
<cfhttp url="http://www.raymondcamden.com/index2332.cfm">
<cfdump var="#cfhttp#">
If a 404 handler isn't there, then this would have worked.
On Sat, Mar 29, 2014 at 2:19 AM, safo 2000 <[email protected]> wrote:
>
> hi,
>
> i have w2k3 server that holds a text file, say x.txt, generated by an VFP9
> app., on a separate server i have a cf9 app. that needs to check for file
> x, if it exists get a copy of it and merge it with another text file that
> is generated by the app.
> well, how can i do the checking part?
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358221
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm