*this is code I added trying to first connect, then change the directory *lconnect returns 0 and lsetfolder returns .T. lconnect = this.oftp.ftpconnect(lcftpserver,lcusername,lcpassword) lsetfolder = this.oftp.ftpsetdirectory("/CharlesTest") lcFile = Justfname(Trim(lofile.cfilename)) * this is the original code and it still just puts the file in the / root of the FTP server. lnResult = this.oftp.FTPSendFile(lcFTPServer,; lcfilepath,; lcFile,; lcUsername,; lcpassword )I have a feeling I am creating a new handle with the FTPSendfile and the ftpsetdirectory is not being honored for this one, but I don't see where to change the directory within the FTPSendfile, or how to send the file after I make the first connection and change the directory without another login.