How do I use CFFILE to copy a file from a remote web server?

I need to copy a very specific file from a web server ... and I hoped <cffile action="copy" would assist BUT I get this error:

The cause of this exception was: java.io.FileNotFoundException: C:\ColdFusion8\runtime\servers\coldfusion\SERVER-INF\temp\wwwroot-tmp\http:\fred.com\crm.txt (The filename, directory name, or volume label syntax is incorrect).

SO; it appears my 'source' won't point directly to fred.com\crm.txt ...

What on earth am I doing wrong!?

This is the exact CFFILE I'm trying to use:

<cffile action="copy" source="http:\\archangel.us\jonesnsa.txt" destination="c:\Inetpub\wwwroot\nfa\mq.txt">


Richard
rcbuchananAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jones911Commented:
Source needs to be c:\foldername\filename.extention not http:\\server\filename
0
ZvonkoSystems architectCommented:
I was near to help you but then I sow you are faker or at least helping a faker do his job.
Or do you know ron jackson?
http://whois.net/whois/archangel.us
0
duncancummingCommented:
If you're trying to copy the file from someone else's webserver, you'd have to use CFHTTP to GET it, specifying the Path attribute for where you want to save the file to (or use the CFHTTP.FileContent variable)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

rcbuchananAuthor Commented:
Good grief - Zvonko - the domain name - archangel.us was just a random domain I tried to think of .... as a bloody example. ( I have NO idea who or what owns the domain ... )  Perhaps I'll use domain.com/file.txt !!?!? as example.

OBVIOUSLY I'm not going to tell my domain name's file ... for the save of obvious privacy.

So relax mate. If you can help - great.

Richard
0
rcbuchananAuthor Commented:
Except for the conspiracy theory by Zvonko.
AGAIN - and to be explicit - the domain name / filename i provided was IMAGINARY / made up ... as an example. Contrary to Zvonko's impressions - I have NO desire to attack anyone's web site. Am working to download an output file for weather from a weather site that provides for public domain.
0
ZvonkoSystems architectCommented:
Tell other boys stories. Today you deleted that file you named in the EXACT cffile statement but when I have tested the file was there.
0
rcbuchananAuthor Commented:
Baloney. Shut up! Move on already.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.