#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2011
    Posts
    1
    Rep Power
    0

    Question Absolute LAN Directory for CFDirectory


    I am trying to use cfdirectory to search a LAN directory, determine the file extension and create a link to the file. I have tried different variations tho the absolute path, but it produces no results.

    The cfelse path works just fine. What else can I try?

    <cfdirectory action="list" name="Files" directory="http://file:///N:\QS\#doc_path#\#site_path#\#bu_path#\#dept_path#\" filter="#Left(link_list.code,4)##mid(link_list.code,6,2)#_#Mid(link_list.code,9,2)#_#Right(link_list.code, 4)#.*">

    <cfif isDefined("Files.recordcount") and Files.recordcount NEQ 0>
    <a href="file///N:\QS\#doc_path#\#site_path#\#bu_path#\#dept_path#\#files.name#" target_blank>#code#</a>
    <cfelse><a href="file:///N:\QS\#doc_path#\#site_path#\#bu_path#\#dept_path#\#Left(link_list.code,4)##mid(link_list.code,6,2)# _#Mid(link_list.code,9,2)#_#Right(link_list.code,4)#.pdf" target=_blank>#code#</a></cfif>
  2. #2
  3. No Profile Picture
    Moderator

    Join Date
    Jun 2002
    Location
    Raleigh, NC
    Posts
    5,265
    Rep Power
    968
    Assuming the account that CF is running under has read access to the share, you should be able to use the network path (\\server\share) or drive path (N:\share).

IMN logo majestic logo threadwatch logo seochat tools logo