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 even use the path and file attributes of CFHTTP to read and save the
file at the same time.
If there is no web server on the W2k3 server that holds the file, then
your options change.
If the two servers are on the same network, then you could run the CF
service as an account that has access to reach the file over UNC then just
use the UNC paths like you would normal paths in your cffile tag(s).
If they are not on the same network (and you canąt set them up that way),
then there are many ways that you could have the w2k3 server łsend˛ the
file to the other machine when it generates it. I believe you said there
is a visual fox pro app on the w2k3 box. If you control that app and can
change it, it is capable of POSTing a file to a URL (url being a page you
setup on your CF server to accept a multipart/form-data post to upload the
file).
If you canąt edit the VFP app, then you could install CURL on the W2k3 box
and still do the same thingŠ Have CURL post the file to a page you set up
on your CF server. Your CURL command would be a one liner that you could
either schedule with windows scheduler or you could set up a service on
the w2k3 box to monitor changes to the txt file and trigger the POST
automatically anytime it changes.
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:358255