dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: absolute cfdirectory from LAN folder

  1. #1
    Join Date
    Jun 2010
    Posts
    2

    Question absolute cfdirectory from LAN folder

    I am trying to create href links to files on our LAN directory without knowing the file type. My cfelse link works fine, but I can't seem to get the directory path in the cfdirectory to produce any query results. I tried adding and http:// but still no results.

    I would appreciate your input on this, as all the examples I find pull from web servers.

    <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
    Join Date
    Aug 2011
    Posts
    22
    Have you rechecked your code for syntax errors?

    <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>

    should be:

    <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>

    or am I wrong?

  3. #3
    Join Date
    Dec 2011
    Posts
    2
    Hey.Nice site . My 1st time on www.web-developer.com!!!!!.Looks like a good group here.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles