Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CFFile

Status
Not open for further replies.

danarashad

Programmer
Nov 2, 2006
115
US
I dont know if this is possible, but I would like some help.
I am trying to copy files from my server to another companies server, via coldfusion.
I have no problem copying files locally, but when I try to copy via network, no dice.

<cffile action="copy" source="D:\folder1\file.pdf" destination="W:\folder1\">
I kept getting this error.
The cause of this exception was: java.io.FileNotFoundException: D:\folder1\W:\ (The filename, directory name, or volume label syntax is incorrect).
But if i change that W: to D: the local server, it copies. Is it possible to copy from server to server. this server is not on my domain. but i can access the server. i've tried using the unc name, that doesnt work either. is this possible or what. thanks for the help!
 
Does the Web server have the W: drive mapped? Can you get to the external resource from the server console? Does the account running the CF service have rights to that resource?

This task is usually accomplished using FTP.

Phil Hegedusich
Senior Programmer/Analyst
IIMAK
-----------
Pity the insomniac dyslexic agnostic. He stays up all night, wondering if there really is a dog.
 
yes the web server has the w:\ drive mapped.
Server console? how do you do that, do you mean \\blahblah\, if so yeah i can get to it.
Resources
I dont think so?
FTP
yeah i thought about ftp, but i'd be opening and closing connections too many times, also ftp isnt secure.
 
And the system user normally doesn't get access to network resources. You should run the CF service in the context of a user that is granted access to the network resources it needs to interact with.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top