I modified some CF Help Example code to get to the following, which works.
However, when I omit the Chunk 2 code, I get the following error on Chunk 3
code
"The error occurred while processing an element with a general identifier
of (CFFTP), occupying document position (33:1) to (39:1)."
I don't get why the Chunk 2 code is needed? Any clues as to what I am
missing here?
Thanks,
Nick
<P>Open a connection
**** Chunk 1
<cfftp connection = "myConnection"
username = "XXXX"
password = "yyyyyyy"
server = "ftp.server.com"
action = "">
stopOnError = "Yes"
>
<P>Did it succeed? <cfoutput>#cfftp.succeeded#</cfoutput>
**** Chunk 2
<cfftp connection = "myConnection"
action = "">
stopOnError = "Yes"
name = "ListDirs"
directory = "/d:/UserID/htdocs/TestDir/">
**** Chunk 3
<cfftp connection = "myConnection"
action="">
stoponerror="Yes"
directory = "/d:/UserID/htdocs/TestDir/"
localfile="C:\Inetpub\wwwroot\Bustem\FTP-Test-DataF.txt"
remoteFile = "FTP-Test-Data.txt"
>
<P>Close the connection:
<cfftp connection = "myConnection"
action = "">
stopOnError = "Yes">
<P>Did it succeed? <cfoutput>#cfftp.succeeded#</cfoutput>
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
- XML String Formatting Glen Salisbury
- RE: XML String Formatting Samuel Neff
- RE: XML String Formatting Glen Salisbury
- Nick Baker