<cfquery> is one thing - those refernce a dsn set in CF Administrator.
<cfcontent> needs an actual file path. Your server has no idea what "\\servername\..."
means. It needs
"D:\exact\file\path\
You may, however, be able to manipulate your serverpath using #ExpandPath()#
HTH,
Adrian J. Moreno
Howie Hamlin wrote:
> I have one server running CF which accesses DB files (DbaseIV - don't ask
> <g>). Anyway, that works fine (I can do queries and such). I have CF
> logged in as Administrator and using UNC paths. Today, I tried to configure
> CFCONTENT to send db files to a browser. I get a Windows error of 5 (access
> denied).
>
> Here's the pertinent code:
>
> <cfset dbfile="\\ServerName\ShareName\databasefolder\"&url.file>
> <CFCONTENT TYPE="appplication/octet-stream"
> DELETEFILE="No"
> FILE="#dbfile#"
> RESET="Yes">
>
> I know the shares work (CFQUERY would not work otherwise). Any ideas?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists