Skip to main content
WolfShade
Legend
February 14, 2013
Question

CF9 - CFDIRECTORY returning blank

  • February 14, 2013
  • 2 replies
  • 1149 views

Hello, everyone.

I read (somewhere) that if CF is installed and run under a local account, then it cannot utilize CFDIRECTORY.

So I followed the instructions to add an account to my Win7 system for CF9, gave it administrator status, switched CF to run under this account, and restarted CF9 Application Server.

But CFDIRECTORY is still returning a blank object.  The path is correct (although C:/CF9/wwwroot looks odd to my MS conditioned eyes).

Any suggestions on how to get CFDIRECTORY to work?

^_^

    This topic has been closed for replies.

    2 replies

    Inspiring
    February 14, 2013

    The path looks odd to my eyes too.  It would look normal with backslashes instead of forward slashes.

    Inspiring
    February 14, 2013

    Not sure what "administrator status" is referring to, since there are multiple levels of admin capabilities.  Did you give it local admin or domain admin privs?  If it is a local admin, then it won't have access to directories on another server.  You will need to go to that server and specifically give that user access privs to the directories you want it to be able to read.

    -reed

    WolfShade
    WolfShadeAuthor
    Legend
    February 14, 2013

    Win7 Pro, standalone.  Admin permissions that go with being in the Administrator group.  Not trying to access directories of other servers, this is purely local.

    ^_^

    Inspiring
    February 14, 2013

    I've never had a problem with CF not being able to use CFDIRECTORY/etc tags for directories and files on the local machine, with the CF service running under the default service account (ie, no changes from how it was installed).  Did you try to use CFDIRECTORY before changing to the non-service account?  If not, give that a try - it will show whether the problem is with the permissions on the user you setup.

    The forward slashes might look odd, but CFDIRECTORY doesn't care.

    Can you show us the code that you are executing, and the output?

    -reed