Actually I recommend using the UNC name (\\servername\sharename\dir\file)
because using the drive letter relies on that drive being mapped.

-----Original Message-----
From: Adrian J. Moreno [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 12, 2001 5:57 PM
To: CF-Talk
Subject: Re: CFContent to a network share


<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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to