Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cfftp question

Status
Not open for further replies.

FALCONSEYE

Programmer
Jul 30, 2004
1,158
0
0
US
i have the following...

<p>Open the connection</p>
<cfftp action="OPEN" server="...." username="" password="" connection="myFTP" stoponerror="yes">

<cffile action="write" file="e:/DeleteThisFile.txt" output="#ValueList(GetCustomerTable.emailAddress)#">

<cffile action="read" file="e:/DeleteThisFile.txt" variable="mess">

<cfftp action = "LISTDIR"
stopOnError = "Yes"
name = "ListFiles"
directory = "e:/"
connection = "myFTP">
<cfoutput query = "ListFiles">
#name#<BR>
</cfoutput><p>-----------</p>
<cfoutput>#mess#</cfoutput>

<p>Close the connection:
<cfftp action = "close" connection = "myFTP" stopOnError = "Yes">


i am trying to write the outputs of a query into a text file and ftp it to a server. my problem is i am getting the following error:

An exception occurred when performing the FTP LISTDIR operation.
The cause of this exception was that: Connection closed without indication..

The error occurred in E:\vpTwo\Sprocket\BURAK\JCSExport.cfm: line 28

26 :
27 : <cfftp action = "LISTDIR"
28 : stopOnError = "Yes"
29 : name = "ListFiles"
30 : directory = "e:/"


i am not sure why i get this error. does anyone know how to fix this ?
thanks in advance



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top