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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cant write to a Server with cffile

Status
Not open for further replies.

kensington43

Technical User
Nov 29, 2005
50
US


I want to copy a Word Document from my Windows NT web Server to an Info Server:
Code:
<cflock name="theLock" type="EXCLUSIVE" timeout="30">
<cffile action="copy" source="C:\theDoc.doc" destination="\\\infoServer\theDirectory\">
</cflock>
I keep getting error message:
The cause of this exception was: java.io.FileNotFoundException: \\\infoServer\theDirectory\ (Access is denied).


The weird part is I own the directory and can create documents in this directory on the info server AND I have a Perl script that can copy this file (theDoc.doc) into this Info server. I would rather do this with Cold Fusion, so why does Cold Fusion MX 6.0 say access denied??
 
not YOU, but the cf server doesn't have permissions.

also you may want to try using the ip of the server vice the server name.

We've heard that a million monkeys at a million keyboards could produce the complete works of Shakespeare; now, thanks to the Internet, we know that is not true.
 
Thanks, I assume there is a setting on the Cold Fusion server?

If so what is it? If it is something I cant do then I will use Perl for this task.
 
You would need to go into Windows Services and edit the user that Coldfusion runs under. You would need to run it under a user that had access to the network.

Hope this helps

Wullie

Fresh Look - Quality Coldfusion 7/Windows Hosting

The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top