You can not use the CFDirectory base don the connection. You have to use the CFFTP ACTION="LISTDIR" and then use that information.
To read a File from the FTP, you will have to download The file to the local server then read it. Such as: CFFTP ACTION="GETFILE" Then use CFFILE ACTION="READ" -----Original Message----- From: Dave Ashworth [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 09, 2005 7:24 AM To: CF-Talk Subject: CFFTP and CFDIRECTORY once I have made a connection using CFFTP, how would I then use that to run a CFDirectory operation so that I can then run a CFFile operation, read the contents of the files and then delete said files? so far I have tried with no luck: <cfftp connection="this_bounceback_list" action="open" username="LCBounceback" password="password" server="whatever" port="2121" name="this_connection" stopOnError="yes"> <cfftp connection="this_bounceback_list" action="GetCurrentDir" stopOnError="Yes"> <cfdirectory directory="#cfftp.returnvalue#" name="bounceback_folder" filter="*.msg"> Thanks in advance Dave ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:223667 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54