Click to See Complete Forum and Search --> : absolute cfdirectory from LAN folder


PeoplePerson
09-21-2011, 11:28 AM
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>

ramin1360_2
11-27-2011, 03:59 PM
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?

GlinydizGenda
12-16-2011, 12:44 AM
Hey.Nice site . My 1st time on www.web-developer.com! (http://www.laptop-repair-las-vegas.com)! (http://www.cleaningserviceslasvegas.net)! (http://www.computer-repairs-las-vegas.com)! (http://www.carpet-cleaning-lasvegas.com)! (http://www.vegascompudoc.com).Looks like a good group here.