Re: cfdirectory to network locations
On Aug 21, 4:26 pm, "Dan Bracuk" <[email protected]> wrote:
> The long term objective is to be able to use cffile to write text files to
> various servers and I am trying to figure out the syntax with cfdirectory.
> Here is the code.
> <cfset thedir = "something">
> <cfdirectory directory="#thedir#" name="x" action="list">
> <cfdump var="#x#">
> In the first set, if I set the variable to anything resembling
> "drive_letter\directory\subdirectroy\etc", I see the contents of the
> So far so good.
> The problem is, whenever I anything else, I get nothing. Some of my
> unsuccessful attempts include:
> as above without http:
> Am I attempting something that is even possible? If it's possible, is my
> of success because of my code or because of permissions?
<cfdirectory> is your server's way of accessing files on the server
and LAN, you can not use
because they are not local or even close to you AND use http protocol
(cfdirectory can not use that).
access to those is subject to your permissions.