Re: how to check if a remote file exists

2014-04-01 Thread Michael L Gueterman
k Date: Tue, 1 Apr 2014 10:37:37 +0100 Subject: Re: how to check if a remote file exists > > if you have direct access tot he server with the file then you would > use > CFFILE to copy it. > If the file is only accessible over the web, then you can use CFHTTP to > grab the fi

Re: how to check if a remote file exists

2014-04-01 Thread Bobby
What is running on your w2k3 server? Is there a web server through which the source/txt file is accessible? If so, sure, cfhttp can go out and grab it over HTTP. Being a txt file, you wouldn't have to do anything fancy, just point CFHTTP to the txt URL and then read the resulting file content or e

Re: how to check if a remote file exists

2014-04-01 Thread Russ Michaels
if you have direct access tot he server with the file then you would use CFFILE to copy it. If the file is only accessible over the web, then you can use CFHTTP to grab the file content and save to your local server. You will of course not get the raw file, only what is displayed in a browser.

Re: how to check if a remote file exists

2014-04-01 Thread safo 2000
i am a bit confused, this is the first time I do this kind of request so bear with me. I am trying to do the following: i created a cf app on the source server (w2k3) SELECT proxloc from MainServer (the above will check for the file and find it) then i n

Re: how to check if a remote file exists

2014-03-31 Thread John Drake
>ok, so then how would I do the copy from w2k3 to cf9 server You would use CFHTTP to grab the content from the other server, and then save it as a file on your CF9 server. Personally I would do a separate CF app, scheduled in the CF administrator, that would periodically look for the file on t

Re: how to check if a remote file exists

2014-03-31 Thread Russ Michaels
Using cffile? Russ Michaels www.michaels.me.uk cfmldeveloper.com cflive.net cfsearch.com On 31 Mar 2014 08:32, "safo 2000" wrote: > > thanks for the info > > ok, so then how would I do the copy from w2k3 to cf9 server > > ~|

Re: how to check if a remote file exists

2014-03-31 Thread safo 2000
thanks for the info ok, so then how would I do the copy from w2k3 to cf9 server ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www

Re: how to check if a remote file exists

2014-03-29 Thread Dave Watts
> Oh good point there. So - ignoring my server where I don't have a proper > 404 (grin), this should work for you: > > http://www.cnn.com/index2332.cfm";> > > good > Your original point is perfectly valid, though - lots of people don't return proper status codes. So it is useful to have some ad

Re: how to check if a remote file exists

2014-03-29 Thread Raymond Camden
Oh good point there. So - ignoring my server where I don't have a proper 404 (grin), this should work for you: http://www.cnn.com/index2332.cfm";> good On Sat, Mar 29, 2014 at 9:38 AM, Dave Watts wrote: > > > You can use fileExists w/ a URL but unfortunately, if the server has a > 404 > >

Re: how to check if a remote file exists

2014-03-29 Thread Dave Watts
> 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. > > http://www.raymondcamden.com/index2332.cfm";)> > yes > > > http://www.raymondcamden.com/index2332.cfm";> > > > If a 404 handler isn't there, then t

Re: how to check if a remote file exists

2014-03-29 Thread Raymond Camden
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. http://www.raymondcamden.com/index2332.cfm";)> yes http://www.raymondcamden.com/index2332.cfm";> If a 404 handler isn't there, then this would have work

how to check if a remote file exists

2014-03-29 Thread safo 2000
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? ~