> Basically I am running a CFQUERY, create the required '|' delimited fields
> thru Oracle and I want to some how loop of the output, create a file but save
> it directly to the A: drive.  I do not want the file to be created on the
> server first and then downloaded to the A: drive.
>  
> Can this be done?

Yes.

<cfsavecontent variable="tmpFile">
<cfloop query="query_name">#field1#|#field2#....</cfloop>
</cfsavecontent>

<cfheader name="Content-type" value="application/octet-stream">
<cfheader name="Content-disposition" value="attachment; filename=file.txt">
<cfcontent reset="yes">#tmpFile#

--
<mack />
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to