OK guys I seem to be having a disagreement with a co-worker on using the
cfdirectory and trying to grab data from another server. He's read that
you must allow the CF account access to the directory that he's trying
to get his data and I think you must use the IIS anonymous user. Of
course, we could be going in a completely wrong direction so any insight
would be greatly appreciated.
Here's the code in case there's something wrong with it:
<HTML>
<HEAD>
<TITLE>List Directory Information</TITLE>
</HEAD>
<BODY>
<H2>List Directory Information</H2>
<cf_act_browser>
<cfset attributes.dirLocation =
"\\server1\eucnet\inetpub\wwwroot\test\chayw2">
<cfoutput>#attributes.dirLocation#</cfoutput>
<CFDIRECTORY
DIRECTORY="#attributes.dirLocation#"
NAME="mydirectory"
SORT="size ASC, name DESC, datelastmodified">
<TABLE>
<TR>
<TH>Name</TH>
<TH>Modified</TH>
</TR>
<CFOUTPUT QUERY="mydirectory">
<cfif mydirectory.type EQ "File">
<cfset fileLocation =
ReplaceNoCase(attributes.dirLocation,"v:","server2/shareddb")>
<cfset fileLocation =
ReplaceNoCase(fileLocation,"\","/","ALL")>
<cfset fileLocation = #fileLocation#&#mydirectory.name#>
<TR>
<TD><a href="file:////#fileLocation#" <cfif
BrowserType EQ
"MSIE">target="_blank"</cfif>>#mydirectory.name#</a></TD>
<TD>#mydirectory.type#</TD>
</TR>
</cfif>
</CFOUTPUT>
</TABLE>
</BODY>
</HTML>
--
Sincerely,
Chris Hayward
Systems Engineer
JCPenney Direct Marketing Services
972.881.6545 voice
972.672.2248 cell
begin:vcard
n:Hayward;Chris
tel;pager:214.344.7346
tel;cell:972.672.2248
tel;work:972.881.6545
x-mozilla-html:FALSE
org:JCPenney Direct Marketing Services;Web Systems and Support Services
adr:;;2700 W. Plano Pkwy;Plano, Tx 75075;;;
version:2.1
email;internet:[EMAIL PROTECTED]
title:Systems Analyst
fn:Chris Hayward
end:vcard