[Top] [All Lists]

Re: cfdirectory to network locations

Subject: Re: cfdirectory to network locations
From: GArlington
Date: Wed, 22 Aug 2007 01:48:59 -0700
Newsgroups: macromedia.coldfusion.cfml_general_discussion
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 
> directory.
>  So far so good.
>  The problem is, whenever I anything else, I get nothing.  Some of my
> unsuccessful attempts include:
>  http://server_name/directory/
>  http://ip_address/directory/
>  as above without http:
>  \\server_name\directory\
>  \\ip_address\directory
>  Am I attempting something that is even possible?  If it's possible, is my 
> lack
> 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
>  http://server_name/directory/
>  http://ip_address/directory/
because they are not local or even close to you AND use http protocol
(cfdirectory can not use that).
As for
>  \\server_name\directory\
>  \\ip_address\directory
access to those is subject to your permissions.

<Prev in Thread] Current Thread [Next in Thread>