What user is CF running under?
Does that user have the drive mapped?
Do you have rights as that user to that drive?

If any of this is too difficult, try using UNC file names rather than relying on 
mapped drives.
(This is my standard answer for any drive mapping questions :)

Jerry Johnson

>>> [EMAIL PROTECTED] 06/04/02 02:19PM >>>
On our server I have a mapped drive letter "Q" pointing to a directory on 
another server.

I'm trying to read in a file off the server but I keep getting an error. 
Can't I specify a mapped drive letter in CFFILE?

<cfset File="Q:\dir1\filename.txt">
<cffile action="READ" file="#File#" variable="FileContents">
<cfoutput>
#FileContents#<br>
</cfoutput>

This is the error:

Error processing CFFILE
Error attempting to read 'Q:/dir1/filename.txt.' Access is denied. (error 5)
The error occurred while processing an element with a general identifier of 
(CFFILE), occupying document position (112:1) to (112:65).
Date/Time: 06/04/02 14:19:41
Browser: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; msnca3; Q312461)



+-----------------------------------------------------------------------------------+ 

Philip Humeniuk
[EMAIL PROTECTED] 
[EMAIL PROTECTED] 
+------------------------------------------------------------------------------------+



______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to